1 | <?php |
||
5 | class Video |
||
6 | { |
||
7 | /** @var array */ |
||
8 | protected $data = []; |
||
9 | |||
10 | /** @var string */ |
||
11 | protected $path; |
||
12 | |||
13 | /** @var string */ |
||
14 | protected $method = 'videoToUpload'; |
||
15 | |||
16 | /** @var string */ |
||
17 | protected $apiEndpoint; |
||
18 | |||
19 | /** |
||
20 | * @param string $videoPath |
||
21 | * @param string $endpoint |
||
22 | */ |
||
23 | 1 | public function __construct($videoPath, $endpoint) |
|
28 | |||
29 | /** |
||
30 | * @param $title |
||
31 | * |
||
32 | * @return $this |
||
33 | */ |
||
34 | 1 | public function setTitle($title) |
|
40 | |||
41 | /** |
||
42 | * @param string $description |
||
43 | * |
||
44 | * @return $this |
||
45 | */ |
||
46 | 1 | public function setDescription($description) |
|
52 | |||
53 | /** |
||
54 | * @return array |
||
55 | */ |
||
56 | 1 | public function getData() |
|
60 | |||
61 | /** |
||
62 | * @return string |
||
63 | */ |
||
64 | 1 | public function getPath() |
|
68 | |||
69 | /** |
||
70 | * @return string |
||
71 | */ |
||
72 | 1 | public function getApiEndpoint() |
|
76 | |||
77 | /** |
||
78 | * @return string |
||
79 | */ |
||
80 | 1 | public function getMethod() |
|
84 | } |
||
85 |