29 lines
518 B
PHP
29 lines
518 B
PHP
<?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;
|
|
}
|
|
}
|