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

30 lines
641 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
2023-10-04 13:32:30 +03:00
* @param array<string> $fields
2023-10-02 23:10:49 +03:00
*/
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 = "",
public string $titleTemplate = "",
)
{
}
}