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