Total Complexity | 4 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
20 | abstract class Base |
||
21 | { |
||
22 | private $config; |
||
23 | |||
24 | |||
25 | /** |
||
26 | * Initializes the object |
||
27 | * |
||
28 | * @param array $config Multi-dimensional associative list of configuration settings |
||
29 | */ |
||
30 | public function __construct( array $config ) |
||
33 | } |
||
34 | |||
35 | |||
36 | /** |
||
37 | * Returns the configuration setting for the given key |
||
38 | * |
||
39 | * @param string $key Configuration key like "host" or "db/host" |
||
40 | * @param mixed $default Default value if no setting is found |
||
41 | * @return mixed Configuration setting or default value |
||
42 | */ |
||
43 | protected function config( string $key, $default = null ) |
||
59 |