| 1 | <?php |
||
| 21 | final class Metadata implements Resource |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * @var MetadataIterator |
||
| 25 | */ |
||
| 26 | private $metadataIterator; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @var ResourceUri |
||
| 30 | */ |
||
| 31 | private $uri; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @var string |
||
| 35 | */ |
||
| 36 | private $name; |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @var mixed |
||
| 40 | */ |
||
| 41 | private $value; |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @param ResourceUri $uri |
||
| 45 | * @param MetadataIterator $metadataIterator |
||
| 46 | * @param string $name |
||
| 47 | * @param mixed $value |
||
| 48 | */ |
||
| 49 | 12 | public function __construct(ResourceUri $uri, MetadataIterator $metadataIterator, $name, $value) |
|
| 56 | |||
| 57 | /** |
||
| 58 | * @return ResourceUri |
||
| 59 | */ |
||
| 60 | 4 | public function getUri() |
|
| 64 | |||
| 65 | /** |
||
| 66 | * @return string |
||
| 67 | */ |
||
| 68 | 4 | public function getName() |
|
| 72 | |||
| 73 | /** |
||
| 74 | * @return mixed |
||
| 75 | */ |
||
| 76 | 4 | public function getValue() |
|
| 80 | |||
| 81 | /** |
||
| 82 | * @return ResourceReader |
||
| 83 | */ |
||
| 84 | 4 | public function getReader() |
|
| 88 | |||
| 89 | /** |
||
| 90 | * @return ResourceWriter |
||
| 91 | */ |
||
| 92 | 4 | public function getWriter() |
|
| 96 | |||
| 97 | /** |
||
| 98 | * @return MetadataIterator |
||
| 99 | */ |
||
| 100 | 4 | public function getMetadata() |
|
| 104 | } |
||
| 105 |