1 | <?php |
||
6 | class Config implements ConfigInterface |
||
7 | { |
||
8 | /** |
||
9 | * @var Data |
||
10 | */ |
||
11 | protected $config; |
||
12 | |||
13 | /** |
||
14 | * @var array |
||
15 | */ |
||
16 | protected $defaults; |
||
17 | |||
18 | /** |
||
19 | * Create a new configuration object, and initialize it with |
||
20 | * the provided nested array containing configuration data. |
||
21 | */ |
||
22 | public function __construct(array $data = null) |
||
27 | |||
28 | /** |
||
29 | * {@inheritdoc} |
||
30 | */ |
||
31 | public function has($key) |
||
35 | |||
36 | /** |
||
37 | * {@inheritdoc} |
||
38 | */ |
||
39 | public function get($key, $defaultFallback = null) |
||
46 | |||
47 | /** |
||
48 | * {@inheritdoc} |
||
49 | */ |
||
50 | public function set($key, $value) |
||
55 | |||
56 | /** |
||
57 | * {@inheritdoc} |
||
58 | */ |
||
59 | public function import($data) |
||
63 | |||
64 | /** |
||
65 | * {@inheritdoc} |
||
66 | */ |
||
67 | public function replace($data) |
||
72 | |||
73 | /** |
||
74 | * {@inheritdoc} |
||
75 | */ |
||
76 | public function combine($data) |
||
83 | |||
84 | /** |
||
85 | * {@inheritdoc} |
||
86 | */ |
||
87 | public function export() |
||
91 | |||
92 | /** |
||
93 | * {@inheritdoc} |
||
94 | */ |
||
95 | public function hasDefault($key) |
||
99 | |||
100 | /** |
||
101 | * {@inheritdoc} |
||
102 | */ |
||
103 | public function getDefault($key, $defaultFallback = null) |
||
107 | |||
108 | /** |
||
109 | * {@inheritdoc} |
||
110 | */ |
||
111 | public function setDefault($key, $value) |
||
116 | } |
||
117 |