singleton and embed records

This commit is contained in:
lexx committed 2024-10-05 15:19:53 +03:00
1 parent 07b72b0a2c
commit 52a1ec5c5a
18 files changed
+262 -148

No files matched your search

+30
View File
@@ -0,0 +1,30 @@
<?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 = [],
)
{
}
}