1 | <?php |
||
8 | class DataMeta |
||
9 | { |
||
10 | /** |
||
11 | * @var int |
||
12 | */ |
||
13 | protected $width = 0; |
||
14 | |||
15 | /** |
||
16 | * @var int |
||
17 | */ |
||
18 | protected $height = 0; |
||
19 | |||
20 | /** |
||
21 | * @var string |
||
22 | */ |
||
23 | protected $mime = ''; |
||
24 | |||
25 | /** |
||
26 | * @param int $width |
||
27 | * @param int $height |
||
28 | * @param string $mime |
||
29 | */ |
||
30 | public function __construct($width, $height, $mime) |
||
36 | |||
37 | /** |
||
38 | * @return int |
||
39 | */ |
||
40 | public function getWidth() |
||
44 | |||
45 | /** |
||
46 | * @return int |
||
47 | */ |
||
48 | public function getHeight() |
||
52 | |||
53 | /** |
||
54 | * @return string |
||
55 | */ |
||
56 | public function getMime() |
||
60 | |||
61 | /** |
||
62 | * @return array |
||
63 | */ |
||
64 | public function toArray() |
||
72 | } |
||
73 |