| 1 | <?php |
||
| 5 | class Video extends Attachment |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * The video title. |
||
| 9 | * |
||
| 10 | * @var string |
||
| 11 | */ |
||
| 12 | protected $title; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * The video description. |
||
| 16 | * |
||
| 17 | * @var string |
||
| 18 | */ |
||
| 19 | protected $description; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * The video API method. |
||
| 23 | * |
||
| 24 | * @var string |
||
| 25 | */ |
||
| 26 | protected $apiMethod = 'videoToUpload'; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Create a new video instance. |
||
| 30 | * |
||
| 31 | * @param string $path |
||
| 32 | * @param string $title |
||
| 33 | * @param string $description |
||
| 34 | * @param string $apiEndpoint |
||
| 35 | */ |
||
| 36 | 1 | public function __construct($path, $title, $description, $apiEndpoint) |
|
| 43 | |||
| 44 | /** |
||
| 45 | * Get additional attachment data. |
||
| 46 | * |
||
| 47 | * @return array |
||
| 48 | */ |
||
| 49 | 1 | public function getData() |
|
| 56 | } |
||
| 57 |