28 lines
570 B
PHP
28 lines
570 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace Lucent\Schema;
|
||
|
|
|
||
|
|
use Lucent\Primitive\Collection;
|
||
|
|
|
||
|
|
class CollectionSchema implements Schema
|
||
|
|
{
|
||
|
|
public Type $type = Type::COLLECTION;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @param Collection<FieldInterface> $fields
|
||
|
|
* @param array<string> $visible
|
||
|
|
*/
|
||
|
|
function __construct(
|
||
|
|
public string $name,
|
||
|
|
public string $label,
|
||
|
|
public array $visible,
|
||
|
|
public Collection $fields,
|
||
|
|
public bool $isEntry = false,
|
||
|
|
public string $color = "",
|
||
|
|
public string $titleTemplate = "",
|
||
|
|
)
|
||
|
|
{
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|