refactor fields

This commit is contained in:
2024-03-21 22:33:41 +02:00
parent bb77a37ff7
commit 8526fd471f
68 changed files with 635 additions and 297 deletions
+25
View File
@@ -0,0 +1,25 @@
<?php
namespace Lucent\Schema;
use Lucent\Primitive\Collection;
use Lucent\Schema\Field\FieldDataInterface;
class EdgeSchema implements Schema
{
public Type $type = Type::EDGE;
/**
* @param Collection<FieldDataInterface> $fields
*/
function __construct(
public string $name,
public string $label,
public array $groups,
public Collection $fields,
public string $titleTemplate = "",
)
{
}
}