| 1 | <?php |
||
| 12 | class DataMeta |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var int |
||
| 16 | */ |
||
| 17 | protected $width = 0; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var int |
||
| 21 | */ |
||
| 22 | protected $height = 0; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var string |
||
| 26 | */ |
||
| 27 | protected $mime = ''; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @param int $width |
||
| 31 | * @param int $height |
||
| 32 | * @param string $mime |
||
| 33 | */ |
||
| 34 | 2 | public function __construct($width, $height, $mime) |
|
| 40 | |||
| 41 | /** |
||
| 42 | * @return int |
||
| 43 | */ |
||
| 44 | 2 | public function width() |
|
| 48 | |||
| 49 | /** |
||
| 50 | * @return int |
||
| 51 | */ |
||
| 52 | 2 | public function weight() |
|
| 56 | |||
| 57 | /** |
||
| 58 | * @return string |
||
| 59 | */ |
||
| 60 | 2 | public function mime() |
|
| 64 | |||
| 65 | /** |
||
| 66 | * @return array |
||
| 67 | */ |
||
| 68 | 1 | public function toArray() |
|
| 76 | } |
||
| 77 |