1 | <?php |
||
9 | trait ContainerAwareTrait |
||
10 | { |
||
11 | /** |
||
12 | * @var \Nip\Container\ContainerInterface |
||
13 | */ |
||
14 | protected $container; |
||
15 | |||
16 | /** |
||
17 | * Get the container. |
||
18 | * |
||
19 | * @return \Nip\Container\ContainerInterface |
||
20 | */ |
||
21 | public function getContainer() |
||
25 | |||
26 | /** |
||
27 | * Set a container. |
||
28 | * |
||
29 | * @param \Nip\Container\ContainerInterface $container |
||
30 | * @return $this |
||
31 | */ |
||
32 | public function setContainer(ContainerInterface $container) |
||
37 | |||
38 | /** |
||
39 | * @return bool |
||
40 | */ |
||
41 | public function hasContainer() |
||
45 | } |