| 1 | <?php declare(strict_types=1); |
||
| 8 | trait ContainerAwareTrait |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var \Psr\Container\ContainerInterface |
||
| 12 | */ |
||
| 13 | protected $container; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * Set a container. |
||
| 17 | * |
||
| 18 | * @param \Psr\Container\ContainerInterface $container |
||
| 19 | * |
||
| 20 | * @return self |
||
| 21 | */ |
||
| 22 | 102 | public function setContainer(ContainerInterface $container): ContainerAwareInterface |
|
| 28 | |||
| 29 | /** |
||
| 30 | * Get the container. |
||
| 31 | * |
||
| 32 | * @return \Psr\Container\ContainerInterface |
||
| 33 | */ |
||
| 34 | 102 | public function getContainer(): ContainerInterface |
|
| 42 | } |
||
| 43 |