| Total Complexity | 6 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | class EmptyImage implements Meta |
||
| 13 | { |
||
| 14 | |||
| 15 | public function getHash() |
||
| 16 | { |
||
| 17 | return '_empty'; |
||
| 18 | } |
||
| 19 | |||
| 20 | |||
| 21 | public function getType() |
||
| 24 | } |
||
| 25 | |||
| 26 | |||
| 27 | public function setHash($hash) |
||
| 28 | { |
||
| 29 | throw new \LogicException('Unavailable image hash cannot be changed.'); |
||
| 30 | } |
||
| 31 | |||
| 32 | |||
| 33 | public function setType($type) |
||
| 34 | { |
||
| 35 | throw new \LogicException('Unavailable image hash cannot be changed.'); |
||
| 36 | } |
||
| 37 | |||
| 38 | |||
| 39 | public function getHeight() |
||
| 40 | { |
||
| 41 | return 1080; |
||
| 42 | } |
||
| 43 | |||
| 44 | |||
| 45 | public function getWidth() |
||
| 48 | } |
||
| 49 | |||
| 50 | } |
||
| 51 |