| Total Complexity | 3 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | class ParentNode extends RootNode |
||
| 15 | { |
||
| 16 | /** @var ItemInterface */ |
||
| 17 | private $item; |
||
| 18 | /** @var RootNode */ |
||
| 19 | private $parent; |
||
| 20 | |||
| 21 | public function __construct(ItemInterface $item, RootNode $parent) |
||
| 22 | { |
||
| 23 | $this->item = $item; |
||
| 24 | $this->parent = $parent; |
||
| 25 | } |
||
| 26 | |||
| 27 | public function getItem(): ItemInterface |
||
| 28 | { |
||
| 29 | return $this->item; |
||
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @return RootNode |
||
| 34 | */ |
||
| 35 | public function getParent(): RootNode |
||
| 38 | } |
||
| 39 | } |
||
| 40 |