1 | <?php declare(strict_types=1); |
||
8 | trait ContainerAwareTrait |
||
9 | { |
||
10 | /** |
||
11 | * @var ContainerInterface |
||
12 | */ |
||
13 | protected $container; |
||
14 | |||
15 | /** |
||
16 | * @var Container |
||
17 | */ |
||
18 | protected $leagueContainer; |
||
19 | |||
20 | /** |
||
21 | * Set a container. |
||
22 | * |
||
23 | * @param ContainerInterface $container |
||
24 | * |
||
25 | * @return self |
||
26 | */ |
||
27 | 9 | public function setContainer(ContainerInterface $container) : ContainerAwareInterface |
|
33 | |||
34 | /** |
||
35 | * Get the container. |
||
36 | * |
||
37 | * @return ContainerInterface |
||
38 | */ |
||
39 | 6 | public function getContainer() : ContainerInterface |
|
47 | |||
48 | /** |
||
49 | * Set a container. |
||
50 | * |
||
51 | * @param Container $container |
||
52 | * |
||
53 | * @return self |
||
54 | */ |
||
55 | 111 | public function setLeagueContainer(Container $container) : ContainerAwareInterface |
|
62 | |||
63 | /** |
||
64 | * Get the container. |
||
65 | * |
||
66 | * @return Container |
||
67 | */ |
||
68 | 102 | public function getLeagueContainer() : Container |
|
76 | } |
||
77 |