31 lines
689 B
PHP
31 lines
689 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace Lucent\Schema;
|
||
|
|
|
||
|
|
use Lucent\Primitive\Collection;
|
||
|
|
|
||
|
|
class SingletonSchema implements Schema
|
||
|
|
{
|
||
|
|
public Type $type = Type::COLLECTION;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @param Collection<FieldInterface> $fields
|
||
|
|
*/
|
||
|
|
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 = [],
|
||
|
|
)
|
||
|
|
{
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|