Files
lucent-laravel/src/Schema/SingletonSchema.php
T

32 lines
704 B
PHP
Raw Normal View History

2024-10-05 15:19:53 +03:00
<?php
namespace Lucent\Schema;
2024-10-11 16:04:44 +03:00
use Lucent\Field\Field;
2024-10-05 15:19:53 +03:00
use Lucent\Primitive\Collection;
class SingletonSchema implements Schema
{
public Type $type = Type::COLLECTION;
/**
2024-10-11 16:04:44 +03:00
* @param Collection<Field> $fields
2024-10-05 15:19:53 +03:00
*/
function __construct(
public string $name,
public string $label,
public array $groups,
public Collection $fields,
public string $folder = "",
public string $color = "",
public ?string $cardTitle = null,
public ?string $cardImage = null,
public int $revisions = 0,
public array $read = [],
public array $write = [],
)
{
}
}