1 | <?php |
||
8 | trait ConfigAwareTrait |
||
9 | { |
||
10 | /** |
||
11 | * @var Config |
||
12 | */ |
||
13 | protected $config; |
||
14 | |||
15 | /** |
||
16 | * Set the config. |
||
17 | * |
||
18 | * @param Config|array|null $config |
||
19 | */ |
||
20 | protected function setConfig($config) |
||
24 | |||
25 | /** |
||
26 | * Get the Config. |
||
27 | * |
||
28 | * @return Config config object |
||
29 | */ |
||
30 | public function getConfig() |
||
38 | |||
39 | /** |
||
40 | * Convert a config array to a Config object with the correct fallback. |
||
41 | * |
||
42 | * @param array $config |
||
43 | * |
||
44 | * @return Config |
||
45 | */ |
||
46 | protected function prepareConfig(array $config) |
||
53 | } |
||
54 |