enforce element level hierarchy
This commit is contained in:
parent
25495b6c4d
commit
99e1ba051c
5 changed files with 80 additions and 44 deletions
|
|
@ -2,14 +2,13 @@
|
|||
|
||||
namespace App\Element;
|
||||
|
||||
use App\Set\Set;
|
||||
use App\Set\SetLevel;
|
||||
|
||||
final readonly class CreateElementDto
|
||||
{
|
||||
public function __construct(
|
||||
public Set $set,
|
||||
public string $name,
|
||||
public string $kind,
|
||||
public SetLevel $level,
|
||||
public ?Element $parentElement,
|
||||
) {}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue