| 1 | <?php |
||
| 7 | class ImageParameterBag extends AbstractMediaParameterBag |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var int |
||
| 11 | */ |
||
| 12 | protected $width; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var int |
||
| 16 | */ |
||
| 17 | protected $height; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @param int $width |
||
| 21 | * @param int $height |
||
| 22 | * @param array $extra |
||
| 23 | */ |
||
| 24 | 20 | public function __construct($width, $height, array $extra = []) |
|
| 31 | |||
| 32 | /** |
||
| 33 | * @return int |
||
| 34 | */ |
||
| 35 | 17 | public function getWidth() |
|
| 39 | |||
| 40 | /** |
||
| 41 | * @param int $width |
||
| 42 | */ |
||
| 43 | 1 | public function setWidth($width) |
|
| 47 | |||
| 48 | /** |
||
| 49 | * @return int |
||
| 50 | */ |
||
| 51 | 17 | public function getHeight() |
|
| 55 | |||
| 56 | /** |
||
| 57 | * @param int $height |
||
| 58 | */ |
||
| 59 | 1 | public function setHeight($height) |
|
| 63 | |||
| 64 | /** |
||
| 65 | * @param MediaInterface $media |
||
| 66 | * @return array |
||
| 67 | */ |
||
| 68 | 15 | public function toArray(MediaInterface $media) |
|
| 75 | } |
||
| 76 |