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

33 lines
779 B
PHP
Raw Normal View History

2023-10-02 23:10:49 +03:00
<?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,
2023-10-04 13:32:30 +03:00
public array $groups,
2023-10-02 23:10:49 +03:00
public Collection $fields,
public bool $isEntry = false,
public string $color = "",
2023-10-23 19:43:59 +03:00
public string $sortBy = "-_sys.updatedAt",
2023-10-02 23:10:49 +03:00
public string $titleTemplate = "",
2023-10-15 19:14:07 +03:00
public int $revisions = 0,
2023-10-17 22:57:25 +03:00
public array $read = [],
public array $write = [],
2023-10-02 23:10:49 +03:00
)
{
}
}