1 | <?php namespace Limoncello\Container\Traits; |
||
24 | trait HasContainerTrait |
||
25 | { |
||
26 | /** |
||
27 | * @var null|ContainerInterface |
||
28 | */ |
||
29 | private $container = null; |
||
30 | |||
31 | /** |
||
32 | * @param ContainerInterface $container |
||
33 | * |
||
34 | * @return self |
||
35 | */ |
||
36 | 1 | protected function setContainer(ContainerInterface $container): self |
|
42 | |||
43 | /** |
||
44 | * @return ContainerInterface |
||
45 | */ |
||
46 | 1 | protected function getContainer(): ContainerInterface |
|
50 | |||
51 | /** |
||
52 | * @return bool |
||
53 | */ |
||
54 | 1 | protected function hasContainer(): bool |
|
58 | } |
||
59 |