Total Complexity | 4 |
Total Lines | 44 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | trait Configurable |
||
8 | { |
||
9 | /** |
||
10 | * Configuration options. |
||
11 | * |
||
12 | * @var Repository |
||
13 | */ |
||
14 | protected $config; |
||
15 | |||
16 | /** |
||
17 | * @return array |
||
18 | */ |
||
19 | public function getConfig() |
||
22 | } |
||
23 | |||
24 | /** |
||
25 | * @param array|string $config |
||
26 | * @param mixed $value |
||
27 | * |
||
28 | * @return self |
||
29 | */ |
||
30 | public function setConfig($config, $value = null) |
||
39 | } |
||
40 | |||
41 | /** |
||
42 | * @param array $config |
||
43 | * |
||
44 | * @return self |
||
45 | */ |
||
46 | protected function addDefaultConfig($config) |
||
53 |