| Total Complexity | 2 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | class Video extends Media |
||
| 24 | { |
||
| 25 | /** |
||
| 26 | * Messages type. |
||
| 27 | * |
||
| 28 | * @var string |
||
| 29 | */ |
||
| 30 | protected $type = 'video'; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Properties. |
||
| 34 | * |
||
| 35 | * @var array |
||
| 36 | */ |
||
| 37 | protected $properties = [ |
||
| 38 | 'title', |
||
| 39 | 'description', |
||
| 40 | 'media_id', |
||
| 41 | 'thumb_media_id', |
||
| 42 | ]; |
||
| 43 | |||
| 44 | /** |
||
| 45 | * Video constructor. |
||
| 46 | * |
||
| 47 | * @param string $mediaId |
||
| 48 | * @param array $attributes |
||
| 49 | */ |
||
| 50 | 1 | public function __construct(string $mediaId, array $attributes = []) |
|
| 53 | 1 | } |
|
| 54 | |||
| 55 | 1 | public function toXmlArray() |
|
| 66 |