Total Complexity | 3 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
19 | trait ConfigAwareTrait |
||
20 | { |
||
21 | /** |
||
22 | * @var ConfigInterface |
||
23 | */ |
||
24 | protected $config; |
||
25 | |||
26 | /** |
||
27 | * @param ConfigInterface $config |
||
28 | * @return $this |
||
29 | */ |
||
30 | public function setConfig(ConfigInterface $config) |
||
31 | { |
||
32 | $this->config = $config; |
||
33 | return $this; |
||
34 | } |
||
35 | |||
36 | /** |
||
37 | * @return ConfigInterface |
||
38 | * @throws \LogicException if not set yet |
||
39 | */ |
||
40 | public function getConfig(): ConfigInterface |
||
46 | } |
||
47 | } |