| Total Complexity | 7 |
| Total Lines | 76 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 5 | class Video extends AbstractEntity |
||
| 6 | { |
||
| 7 | const ENTITY_TYPE = 'Video'; |
||
| 8 | |||
| 9 | protected $file_id; |
||
| 10 | |||
| 11 | protected $width; |
||
| 12 | |||
| 13 | protected $height; |
||
| 14 | |||
| 15 | protected $duration; |
||
| 16 | |||
| 17 | protected $thumb; |
||
| 18 | |||
| 19 | protected $mime_type; |
||
| 20 | |||
| 21 | protected $file_size; |
||
| 22 | |||
| 23 | protected $builtInEntities = [ |
||
| 24 | 'thumb' => PhotoSize::class |
||
| 25 | ]; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @return mixed |
||
| 29 | */ |
||
| 30 | public function getFileId() |
||
| 31 | { |
||
| 32 | return $this->file_id; |
||
| 33 | } |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @return mixed |
||
| 37 | */ |
||
| 38 | public function getWidth() |
||
| 39 | { |
||
| 40 | return $this->width; |
||
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @return mixed |
||
| 45 | */ |
||
| 46 | public function getHeight() |
||
| 47 | { |
||
| 48 | return $this->height; |
||
| 49 | } |
||
| 50 | |||
| 51 | /** |
||
| 52 | * @return mixed |
||
| 53 | */ |
||
| 54 | public function getDuration() |
||
| 55 | { |
||
| 56 | return $this->duration; |
||
| 57 | } |
||
| 58 | |||
| 59 | /** |
||
| 60 | * @return mixed |
||
| 61 | */ |
||
| 62 | public function getThumb() |
||
| 63 | { |
||
| 64 | return $this->thumb; |
||
| 65 | } |
||
| 66 | |||
| 67 | /** |
||
| 68 | * @return mixed |
||
| 69 | */ |
||
| 70 | public function getMimeType() |
||
| 73 | } |
||
| 74 | |||
| 75 | /** |
||
| 76 | * @return mixed |
||
| 77 | */ |
||
| 78 | public function getFileSize() |
||
| 83 |