| Total Complexity | 5 |
| Total Lines | 48 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 6 | class Video |
||
| 7 | { |
||
| 8 | /** |
||
| 9 | * @var string |
||
| 10 | */ |
||
| 11 | private $thumb; |
||
| 12 | /** |
||
| 13 | * @var string |
||
| 14 | */ |
||
| 15 | private $url; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Video constructor. |
||
| 19 | * |
||
| 20 | * @param string $thumb |
||
| 21 | * @param string $url |
||
| 22 | */ |
||
| 23 | public function __construct(string $thumb, string $url) |
||
| 24 | { |
||
| 25 | $this->thumb = $thumb; |
||
| 26 | $this->url = $url; |
||
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @return string |
||
| 31 | */ |
||
| 32 | public function getThumb(): string |
||
| 33 | { |
||
| 34 | return $this->thumb; |
||
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @return string |
||
| 39 | */ |
||
| 40 | public function getUrl(): string |
||
| 43 | } |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @return string|null |
||
| 47 | */ |
||
| 48 | public function getYoutubeId(): ?string |
||
| 54 | } |
||
| 55 | } |
||
| 56 |