| 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 boolean |
||
| 17 | */ |
||
| 18 | protected $trackMetadata = false; |
||
| 19 | |||
| 20 | public function __construct($trackMetadata = false) |
||
| 24 | |||
| 25 | /** |
||
| 26 | * {@inheritdoc} |
||
| 27 | */ |
||
| 28 | public function set($key, ConfigItemInterface $item) |
||
| 42 | |||
| 43 | /** |
||
| 44 | * {@inheritdoc} |
||
| 45 | */ |
||
| 46 | public function get($key) |
||
| 54 | |||
| 55 | /** |
||
| 56 | * {@inheritdoc} |
||
| 57 | */ |
||
| 58 | public function exists($key) |
||
| 62 | |||
| 63 | /** |
||
| 64 | * {@inheritdoc} |
||
| 65 | */ |
||
| 66 | public function delete($key) |
||
| 72 | } |
||
| 73 |