| 1 | <?php |
||
| 20 | trait ContainerAwareTrait |
||
| 21 | { |
||
| 22 | |||
| 23 | /** |
||
| 24 | * The instance of container. |
||
| 25 | * |
||
| 26 | * @var ContainerInterface |
||
| 27 | */ |
||
| 28 | |||
| 29 | protected $container; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Set a container. |
||
| 33 | * |
||
| 34 | * @param ContainerInterface $container |
||
| 35 | * @return mixed |
||
| 36 | */ |
||
| 37 | |||
| 38 | 1 | public function setContainer(ContainerInterface $container) |
|
| 44 | |||
| 45 | /** |
||
| 46 | * Get the container. |
||
| 47 | * |
||
| 48 | * @return ContainerInterface |
||
| 49 | */ |
||
| 50 | |||
| 51 | 1 | public function getContainer() |
|
| 55 | |||
| 56 | } |
||
| 57 |