26 lines
485 B
PHP
26 lines
485 B
PHP
|
|
<?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 = "",
|
||
|
|
)
|
||
|
|
{
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|