| Total Complexity | 3 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | trait ContainerTrait |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var WeakReference<ChildInterface>|null |
||
| 16 | */ |
||
| 17 | private $container; |
||
| 18 | |||
| 19 | |||
| 20 | /** |
||
| 21 | * @see ElementInterface::container() |
||
| 22 | */ |
||
| 23 | 351 | final public function container(): ?ChildInterface |
|
| 26 | } |
||
| 27 | |||
| 28 | /** |
||
| 29 | * {@inheritdoc} |
||
| 30 | * |
||
| 31 | * @return static |
||
| 32 | * @see ElementInterface::setContainer() |
||
| 33 | */ |
||
| 34 | 335 | final public function setContainer(ChildInterface $container): ElementInterface |
|
| 42 |