26 lines
475 B
PHP
26 lines
475 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Support\Seo;
|
|
|
|
use Illuminate\Contracts\Support\Arrayable;
|
|
|
|
/** @implements Arrayable<string, mixed> */
|
|
final class SeoData implements Arrayable
|
|
{
|
|
/**
|
|
* @param array<string, mixed> $attributes
|
|
*/
|
|
public function __construct(private readonly array $attributes)
|
|
{
|
|
}
|
|
|
|
/**
|
|
* @return array<string, mixed>
|
|
*/
|
|
public function toArray(): array
|
|
{
|
|
return $this->attributes;
|
|
}
|
|
} |