1 | <?php |
||
7 | class Metadata implements MetadataInterface |
||
8 | { |
||
9 | /** |
||
10 | * @var array |
||
11 | */ |
||
12 | private $metadata = []; |
||
13 | |||
14 | /** |
||
15 | * @param array $metadata |
||
16 | */ |
||
17 | 102 | public function __construct(array $metadata = []) |
|
23 | |||
24 | /** |
||
25 | * @param string $key |
||
26 | * @param string $value |
||
27 | */ |
||
28 | 13 | public function set($key, $value) |
|
32 | |||
33 | /** |
||
34 | * @param string $key |
||
35 | * @return mixed|null |
||
36 | */ |
||
37 | 4 | public function get($key) |
|
41 | |||
42 | /** |
||
43 | * @param string $key |
||
44 | * @return bool |
||
45 | */ |
||
46 | 4 | public function has($key) |
|
50 | |||
51 | /** |
||
52 | * @return array |
||
53 | */ |
||
54 | 40 | public function all() |
|
58 | |||
59 | /** |
||
60 | * {@inheritdoc} |
||
61 | */ |
||
62 | 1 | public function getIterator() |
|
66 | |||
67 | /** |
||
68 | * {@inheritdoc} |
||
69 | */ |
||
70 | 1 | public function count() |
|
74 | } |
||
75 |