@@ -137,7 +137,7 @@ discard block |
||
| 137 | 137 | /** |
| 138 | 138 | * Deserialize a response into an instance of it's associated class. |
| 139 | 139 | * |
| 140 | - * @return object |
|
| 140 | + * @return \Doctrine\Common\Collections\ArrayCollection |
|
| 141 | 141 | */ |
| 142 | 142 | protected function deserialize(string $data, string $serialisationClass) |
| 143 | 143 | { |
@@ -191,6 +191,7 @@ discard block |
||
| 191 | 191 | |
| 192 | 192 | /** |
| 193 | 193 | * Checks if the request may be cached. |
| 194 | + * @param ResponseInterface $response |
|
| 194 | 195 | */ |
| 195 | 196 | private function isCacheable(string $method, string $uri, array $options, $response): bool |
| 196 | 197 | { |
@@ -220,7 +221,7 @@ discard block |
||
| 220 | 221 | * Serializes the provided response to a string, suitable for caching. |
| 221 | 222 | * The type of the $response argument varies depending on the guzzle version. |
| 222 | 223 | * |
| 223 | - * @param mixed $response |
|
| 224 | + * @param ResponseInterface $response |
|
| 224 | 225 | * |
| 225 | 226 | * @return string |
| 226 | 227 | */ |
@@ -37,6 +37,7 @@ |
||
| 37 | 37 | |
| 38 | 38 | /** |
| 39 | 39 | * Method to instantiate a HTTP client. |
| 40 | + * @param TokenMiddleware[] $middlewares |
|
| 40 | 41 | */ |
| 41 | 42 | public function createHttpClient(string $baseUri, ?array $middlewares, ?array $options = []): ClientInterface |
| 42 | 43 | { |
@@ -68,6 +68,7 @@ discard block |
||
| 68 | 68 | |
| 69 | 69 | /** |
| 70 | 70 | * Update a video with new values. |
| 71 | + * @return void |
|
| 71 | 72 | */ |
| 72 | 73 | public function updateVideo( |
| 73 | 74 | int $videoManagerId, |
@@ -79,16 +80,19 @@ discard block |
||
| 79 | 80 | |
| 80 | 81 | /** |
| 81 | 82 | * Add a video to a channel. |
| 83 | + * @return void |
|
| 82 | 84 | */ |
| 83 | 85 | public function addVideoToChannel(int $videoManagerId, string $videoId, int $channelId): void; |
| 84 | 86 | |
| 85 | 87 | /** |
| 86 | 88 | * Remove a video from a channel. |
| 89 | + * @return void |
|
| 87 | 90 | */ |
| 88 | 91 | public function removeVideoFromChannel(int $videoManagerId, string $videoId, int $channelId): void; |
| 89 | 92 | |
| 90 | 93 | /** |
| 91 | 94 | * Add/remove/update custom metadata fields to a video. |
| 95 | + * @return void |
|
| 92 | 96 | */ |
| 93 | 97 | public function setCustomMetaData(int $videoManagerId, string $videoId, array $metadata): void; |
| 94 | 98 | |
@@ -104,6 +108,7 @@ discard block |
||
| 104 | 108 | |
| 105 | 109 | /** |
| 106 | 110 | * Delete a video. |
| 111 | + * @return void |
|
| 107 | 112 | */ |
| 108 | 113 | public function deleteVideo(int $videoManagerId, string $videoId): void; |
| 109 | 114 | |
@@ -132,11 +137,13 @@ discard block |
||
| 132 | 137 | |
| 133 | 138 | /** |
| 134 | 139 | * Update video keywords. |
| 140 | + * @return void |
|
| 135 | 141 | */ |
| 136 | 142 | public function updateKeywords(int $videoManagerId, string $videoId, array $keywords): void; |
| 137 | 143 | |
| 138 | 144 | /** |
| 139 | 145 | * Delete keyword from video by keyword id. |
| 146 | + * @return void |
|
| 140 | 147 | */ |
| 141 | 148 | public function deleteKeyword(int $videoManagerId, string $videoId, int $keywordId): void; |
| 142 | 149 | |
@@ -179,14 +186,23 @@ discard block |
||
| 179 | 186 | */ |
| 180 | 187 | public function getVideoDownloadUrls(int $videoManagerId, string $videoId): ArrayCollection; |
| 181 | 188 | |
| 189 | + /** |
|
| 190 | + * @return \MovingImage\Client\VMPro\Entity\Thumbnail|null |
|
| 191 | + */ |
|
| 182 | 192 | public function createThumbnailByTimestamp( |
| 183 | 193 | int $videoManagerId, |
| 184 | 194 | string $videoId, |
| 185 | 195 | int $timestamp |
| 186 | 196 | ): ?ThumbnailInterface; |
| 187 | 197 | |
| 198 | + /** |
|
| 199 | + * @return \MovingImage\Client\VMPro\Entity\Thumbnail|null |
|
| 200 | + */ |
|
| 188 | 201 | public function getThumbnail(int $videoManagerId, string $videoId, int $thumbnailId): ?ThumbnailInterface; |
| 189 | 202 | |
| 203 | + /** |
|
| 204 | + * @return void |
|
| 205 | + */ |
|
| 190 | 206 | public function updateThumbnail(int $videoManagerId, string $videoId, int $thumbnailId, bool $active): void; |
| 191 | 207 | |
| 192 | 208 | public function getUserInfo(string $token): UserInfo; |
@@ -201,6 +217,9 @@ discard block |
||
| 201 | 217 | |
| 202 | 218 | public function getCorporateTubeMetadata(int $videoManagerId, string $videoId): CorporateTubeMetaData; |
| 203 | 219 | |
| 220 | + /** |
|
| 221 | + * @return void |
|
| 222 | + */ |
|
| 204 | 223 | public function updateCorporateTubeMetadata( |
| 205 | 224 | int $videoManagerId, |
| 206 | 225 | string $videoId, |