1 | <?php |
||
7 | class ChainItem |
||
8 | { |
||
9 | /** |
||
10 | * @var EntityInterface |
||
11 | */ |
||
12 | protected $entity; |
||
13 | |||
14 | /** |
||
15 | * @var EntityInterface |
||
16 | */ |
||
17 | protected $parent; |
||
18 | |||
19 | public function __construct(EntityInterface $entity, EntityInterface $parent = null) |
||
24 | |||
25 | /** |
||
26 | * @return EntityInterface |
||
27 | */ |
||
28 | public function getEntity(): EntityInterface |
||
32 | |||
33 | /** |
||
34 | * @return EntityInterface |
||
35 | */ |
||
36 | public function getParent(): EntityInterface |
||
40 | } |