40 lines
723 B
PHP
40 lines
723 B
PHP
<?php
|
|
|
|
namespace App\Element\UseCases\GetElement;
|
|
|
|
use App\Element\Element;
|
|
|
|
class GetElementResult
|
|
{
|
|
/**
|
|
* @param Element[] $childElements
|
|
* @param Element[] $siblingElements
|
|
*/
|
|
public function __construct(
|
|
private Element $element,
|
|
private array $childElements,
|
|
private array $siblingElements,
|
|
) {
|
|
}
|
|
|
|
public function getElement(): Element
|
|
{
|
|
return $this->element;
|
|
}
|
|
|
|
/**
|
|
* @return Element[]
|
|
*/
|
|
public function getChildElements(): array
|
|
{
|
|
return $this->childElements;
|
|
}
|
|
|
|
/**
|
|
* @return Element[]
|
|
*/
|
|
public function getSiblingElements(): array
|
|
{
|
|
return $this->siblingElements;
|
|
}
|
|
}
|