Total Complexity | 5 |
Total Lines | 41 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
7 | trait ConfigurationTrait |
||
8 | { |
||
9 | /** |
||
10 | * Confirms that a given key exists in configuration settings. |
||
11 | * |
||
12 | 8 | * @return bool |
|
13 | */ |
||
14 | 8 | public function hasConfig() |
|
15 | { |
||
16 | return forward_static_call_array([Configuration::class, 'has'], func_get_args()); |
||
17 | } |
||
18 | |||
19 | /** |
||
20 | * Attempts to retrieve a given key from configuration settings. Returns |
||
21 | * default if not set. |
||
22 | * |
||
23 | 12 | * @return mixed |
|
24 | */ |
||
25 | 12 | public function getConfig() |
|
28 | } |
||
29 | |||
30 | /** |
||
31 | * Updates configuration settings with key value pairs. |
||
32 | * |
||
33 | 12 | * @return this |
|
34 | */ |
||
35 | 12 | public function addConfig() |
|
50 |