1 | <?php |
||
21 | trait ContainerAwareTrait |
||
22 | { |
||
23 | /** |
||
24 | * @var ContainerInterface |
||
25 | */ |
||
26 | protected $container; |
||
27 | |||
28 | /** |
||
29 | * @param ContainerInterface $container |
||
30 | * @return $this |
||
31 | */ |
||
32 | public function setContainer(ContainerInterface $container) |
||
37 | |||
38 | /** |
||
39 | * @return ContainerInterface |
||
40 | * @throws \LogicException if not set yet |
||
41 | */ |
||
42 | public function getContainer(): ContainerInterface |
||
49 | } |