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 | 25 | public function __construct(array $config = []) |
|
25 | |||
26 | /** |
||
27 | * {@inheritdoc} |
||
28 | */ |
||
29 | 17 | public function set($key, $item) |
|
42 | |||
43 | /** |
||
44 | * {@inheritdoc} |
||
45 | */ |
||
46 | 22 | public function get($key) |
|
54 | |||
55 | /** |
||
56 | * {@inheritdoc} |
||
57 | */ |
||
58 | 22 | public function exists($key) |
|
62 | |||
63 | /** |
||
64 | * {@inheritdoc} |
||
65 | */ |
||
66 | 1 | public function clear($key) |
|
72 | |||
73 | /** |
||
74 | * {@inheritdoc} |
||
75 | */ |
||
76 | 7 | public function keys() |
|
80 | |||
81 | /** |
||
82 | * {@inheritdoc} |
||
83 | */ |
||
84 | 21 | public function all() |
|
88 | } |
||
89 |