29 lines
482 B
PHP
29 lines
482 B
PHP
<?php
|
|
|
|
namespace App\Set\UseCases\GetSetLayout;
|
|
|
|
use App\Set\Set;
|
|
|
|
final readonly class SetLayout
|
|
{
|
|
/**
|
|
* @param list<ElementLayoutNode> $elements
|
|
*/
|
|
public function __construct(
|
|
private Set $set,
|
|
private array $elements,
|
|
) {}
|
|
|
|
public function getSet(): Set
|
|
{
|
|
return $this->set;
|
|
}
|
|
|
|
/**
|
|
* @return list<ElementLayoutNode>
|
|
*/
|
|
public function getElements(): array
|
|
{
|
|
return $this->elements;
|
|
}
|
|
}
|