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 | /** |
||
21 | * @var array |
||
22 | */ |
||
23 | protected $history = []; |
||
24 | |||
25 | /** |
||
26 | * @var boolean |
||
27 | */ |
||
28 | protected $trackMetadata = false; |
||
29 | |||
30 | 24 | public function __construct($trackMetadata = false) |
|
34 | |||
35 | /** |
||
36 | * {@inheritdoc} |
||
37 | */ |
||
38 | 21 | public function set($key, $value, $metadata = []) |
|
58 | |||
59 | /** |
||
60 | * {@inheritdoc} |
||
61 | 21 | */ |
|
62 | public function get($key) |
||
71 | |||
72 | /** |
||
73 | 22 | * {@inheritdoc} |
|
74 | */ |
||
75 | 22 | public function exists($key) |
|
80 | |||
81 | 1 | /** |
|
82 | * {@inheritdoc} |
||
83 | 1 | */ |
|
84 | 1 | public function delete($key) |
|
91 | 1 | ||
92 | /** |
||
93 | 1 | * {@inheritdoc} |
|
94 | 1 | */ |
|
95 | 1 | public function deleteAll() |
|
101 | 2 | ||
102 | /** |
||
103 | 2 | * {@inheritdoc} |
|
104 | 1 | */ |
|
105 | public function getMetadata() |
||
113 | 2 | ||
114 | /** |
||
115 | 2 | * {@inheritdoc} |
|
116 | 1 | */ |
|
117 | public function getHistory() |
||
125 | } |
||
126 |