1 | <?php |
||
5 | class ConfigCollection implements ConfigCollectionInterface |
||
6 | { |
||
7 | |||
8 | /** |
||
9 | * Stores a list of key/value config. |
||
10 | * |
||
11 | * @var array |
||
12 | */ |
||
13 | protected $config = []; |
||
14 | |||
15 | /** |
||
16 | * @var array |
||
17 | */ |
||
18 | protected $metadata = []; |
||
19 | |||
20 | 22 | /** |
|
21 | * @var array |
||
22 | 22 | */ |
|
23 | 22 | protected $history = []; |
|
24 | |||
25 | /** |
||
26 | * @var boolean |
||
27 | */ |
||
28 | 19 | protected $trackMetadata = false; |
|
29 | |||
30 | 19 | public function __construct($trackMetadata = false) |
|
34 | |||
35 | 19 | /** |
|
36 | * {@inheritdoc} |
||
37 | */ |
||
38 | 19 | public function set($key, $value, $metadata = []) |
|
57 | |||
58 | 20 | /** |
|
59 | * {@inheritdoc} |
||
60 | 20 | */ |
|
61 | public function get($key) |
||
69 | 1 | ||
70 | 1 | /** |
|
71 | 1 | * {@inheritdoc} |
|
72 | */ |
||
73 | public function exists($key) |
||
77 | |||
78 | /** |
||
79 | * {@inheritdoc} |
||
80 | */ |
||
81 | public function delete($key) |
||
87 | |||
88 | /** |
||
89 | * {@inheritdoc} |
||
90 | */ |
||
91 | public function getMetadata() |
||
99 | |||
100 | /** |
||
101 | * {@inheritdoc} |
||
102 | */ |
||
103 | public function getHistory() |
||
111 | } |
||
112 |