1 | <?php declare(strict_types = 1); |
||
14 | class Metadata implements MetadataContract |
||
15 | { |
||
16 | /** |
||
17 | * @var array |
||
18 | */ |
||
19 | private $data = []; |
||
20 | |||
21 | /** |
||
22 | * Metadata constructor. |
||
23 | * |
||
24 | * @param array $data |
||
25 | */ |
||
26 | 3 | public function __construct(array $data) |
|
30 | |||
31 | /** |
||
32 | * @inheritDoc |
||
33 | */ |
||
34 | 1 | public function mimetype(): string |
|
38 | |||
39 | /** |
||
40 | * @inheritDoc |
||
41 | */ |
||
42 | 1 | public function size(): int |
|
46 | |||
47 | /** |
||
48 | * @inheritDoc |
||
49 | */ |
||
50 | 1 | public function timestamp(): DateTimeInterface |
|
62 | |||
63 | /** |
||
64 | * @inheritDoc |
||
65 | */ |
||
66 | 1 | public function type(): string |
|
70 | |||
71 | /** |
||
72 | * @inheritDoc |
||
73 | */ |
||
74 | 1 | public function path(): string |
|
78 | |||
79 | } |