| 1 | <?php |
||
| 22 | class ImageRendition implements ImageRenditionInterface, PersistableInterface |
||
| 23 | { |
||
| 24 | /** |
||
| 25 | * @var string |
||
| 26 | */ |
||
| 27 | protected $width; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @var string |
||
| 31 | */ |
||
| 32 | protected $height; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @var string |
||
| 36 | */ |
||
| 37 | protected $name; |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @var int |
||
| 41 | */ |
||
| 42 | protected $id; |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @var ImageInterface |
||
| 46 | */ |
||
| 47 | protected $image; |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @var ArticleMediaInterface |
||
| 51 | */ |
||
| 52 | protected $media; |
||
| 53 | |||
| 54 | /** |
||
| 55 | * @return ArticleMediaInterface |
||
| 56 | */ |
||
| 57 | public function getMedia(): ArticleMediaInterface |
||
| 61 | |||
| 62 | /** |
||
| 63 | * @param ArticleMediaInterface $media |
||
| 64 | */ |
||
| 65 | public function setMedia(ArticleMediaInterface $media) |
||
| 69 | |||
| 70 | /** |
||
| 71 | * @return ImageInterface |
||
| 72 | */ |
||
| 73 | public function getImage() |
||
| 77 | |||
| 78 | /** |
||
| 79 | * @param ImageInterface $image |
||
| 80 | */ |
||
| 81 | public function setImage($image) |
||
| 85 | |||
| 86 | /** |
||
| 87 | * @return int |
||
| 88 | */ |
||
| 89 | public function getId(): int |
||
| 93 | |||
| 94 | /** |
||
| 95 | * @param int $id |
||
| 96 | */ |
||
| 97 | public function setId(int $id) |
||
| 101 | |||
| 102 | /** |
||
| 103 | * {@inheritdoc} |
||
| 104 | */ |
||
| 105 | public function getWidth() |
||
| 109 | |||
| 110 | /** |
||
| 111 | * @param string $width |
||
| 112 | * |
||
| 113 | * @return ImageRendition |
||
| 114 | */ |
||
| 115 | public function setWidth($width) |
||
| 121 | |||
| 122 | /** |
||
| 123 | * {@inheritdoc} |
||
| 124 | */ |
||
| 125 | public function getHeight() |
||
| 129 | |||
| 130 | /** |
||
| 131 | * @param string $height |
||
| 132 | * |
||
| 133 | * @return ImageRendition |
||
| 134 | */ |
||
| 135 | public function setHeight($height) |
||
| 141 | |||
| 142 | /** |
||
| 143 | * {@inheritdoc} |
||
| 144 | */ |
||
| 145 | public function getName() |
||
| 149 | |||
| 150 | /** |
||
| 151 | * @param string $name |
||
| 152 | * |
||
| 153 | * @return ImageRendition |
||
| 154 | */ |
||
| 155 | public function setName($name) |
||
| 161 | } |
||
| 162 |