| 1 | <?php declare(strict_types=1); |
||
| 13 | class MediaPlayer implements MediaPlayerInterface |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var string |
||
| 17 | */ |
||
| 18 | protected $playerUrl; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var int |
||
| 22 | */ |
||
| 23 | protected $playerWidth; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @var int |
||
| 27 | */ |
||
| 28 | protected $playerHeight; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @return string |
||
| 32 | */ |
||
| 33 | 2 | public function getUrl() : ?string |
|
| 37 | |||
| 38 | /** |
||
| 39 | * @param string $playerUrl |
||
| 40 | * @return MediaPlayerInterface |
||
| 41 | */ |
||
| 42 | 2 | public function setUrl(?string $playerUrl) : MediaPlayerInterface |
|
| 48 | |||
| 49 | /** |
||
| 50 | * @return int |
||
| 51 | */ |
||
| 52 | 2 | public function getWidth() : ?int |
|
| 56 | |||
| 57 | /** |
||
| 58 | * @param int $playerWidth |
||
| 59 | * @return MediaPlayerInterface |
||
| 60 | */ |
||
| 61 | 2 | public function setWidth(?int $playerWidth) : MediaPlayerInterface |
|
| 67 | |||
| 68 | /** |
||
| 69 | * @return int |
||
| 70 | */ |
||
| 71 | 2 | public function getHeight() : ?int |
|
| 75 | |||
| 76 | /** |
||
| 77 | * @param int $playerHeight |
||
| 78 | * @return MediaPlayerInterface |
||
| 79 | */ |
||
| 80 | 2 | public function setHeight(?int $playerHeight) : MediaPlayerInterface |
|
| 86 | } |
||
| 87 |