add set layout api
This commit is contained in:
parent
eb7ac7d261
commit
4222d4c0a2
16 changed files with 487 additions and 6 deletions
29
backend/app/Set/UseCases/GetSetLayout/ElementLayoutNode.php
Normal file
29
backend/app/Set/UseCases/GetSetLayout/ElementLayoutNode.php
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
<?php
|
||||
|
||||
namespace App\Set\UseCases\GetSetLayout;
|
||||
|
||||
use App\Element\Element;
|
||||
|
||||
final readonly class ElementLayoutNode
|
||||
{
|
||||
/**
|
||||
* @param list<ElementLayoutNode> $children
|
||||
*/
|
||||
public function __construct(
|
||||
private Element $element,
|
||||
private array $children,
|
||||
) {}
|
||||
|
||||
public function getElement(): Element
|
||||
{
|
||||
return $this->element;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return list<ElementLayoutNode>
|
||||
*/
|
||||
public function getChildren(): array
|
||||
{
|
||||
return $this->children;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue