| 1 | <?php declare(strict_types=1); |
||
| 26 | trait HasContainerTrait |
||
| 27 | { |
||
| 28 | /** |
||
| 29 | * @var null|ContainerInterface |
||
| 30 | */ |
||
| 31 | private $container = null; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @param ContainerInterface $container |
||
| 35 | * |
||
| 36 | 1 | * @return self |
|
| 37 | */ |
||
| 38 | 1 | protected function setContainer(ContainerInterface $container): self |
|
| 44 | |||
| 45 | /** |
||
| 46 | 1 | * @return ContainerInterface |
|
| 47 | */ |
||
| 48 | 1 | protected function getContainer(): ContainerInterface |
|
| 52 | |||
| 53 | /** |
||
| 54 | 1 | * @return bool |
|
| 55 | */ |
||
| 56 | 1 | protected function hasContainer(): bool |
|
| 60 | } |
||
| 61 |