@@ -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 | { |
@@ -38,6 +38,7 @@ discard block |
||
| 38 | 38 | |
| 39 | 39 | /** |
| 40 | 40 | * Get a specific channel. |
| 41 | + * @return Channel|null |
|
| 41 | 42 | */ |
| 42 | 43 | public function getChannel(int $videoManagerId, int $channelId): ?Channel; |
| 43 | 44 | |
@@ -73,6 +74,7 @@ discard block |
||
| 73 | 74 | |
| 74 | 75 | /** |
| 75 | 76 | * Update a video with new values. |
| 77 | + * @return void |
|
| 76 | 78 | */ |
| 77 | 79 | public function updateVideo( |
| 78 | 80 | int $videoManagerId, |
@@ -84,16 +86,19 @@ discard block |
||
| 84 | 86 | |
| 85 | 87 | /** |
| 86 | 88 | * Add a video to a channel. |
| 89 | + * @return void |
|
| 87 | 90 | */ |
| 88 | 91 | public function addVideoToChannel(int $videoManagerId, string $videoId, int $channelId): void; |
| 89 | 92 | |
| 90 | 93 | /** |
| 91 | 94 | * Remove a video from a channel. |
| 95 | + * @return void |
|
| 92 | 96 | */ |
| 93 | 97 | public function removeVideoFromChannel(int $videoManagerId, string $videoId, int $channelId): void; |
| 94 | 98 | |
| 95 | 99 | /** |
| 96 | 100 | * Add/remove/update custom metadata fields to a video. |
| 101 | + * @return void |
|
| 97 | 102 | */ |
| 98 | 103 | public function setCustomMetaData(int $videoManagerId, string $videoId, array $metadata): void; |
| 99 | 104 | |
@@ -109,6 +114,7 @@ discard block |
||
| 109 | 114 | |
| 110 | 115 | /** |
| 111 | 116 | * Delete a video. |
| 117 | + * @return void |
|
| 112 | 118 | */ |
| 113 | 119 | public function deleteVideo(int $videoManagerId, string $videoId): void; |
| 114 | 120 | |
@@ -137,11 +143,13 @@ discard block |
||
| 137 | 143 | |
| 138 | 144 | /** |
| 139 | 145 | * Update video keywords. |
| 146 | + * @return void |
|
| 140 | 147 | */ |
| 141 | 148 | public function updateKeywords(int $videoManagerId, string $videoId, array $keywords): void; |
| 142 | 149 | |
| 143 | 150 | /** |
| 144 | 151 | * Delete keyword from video by keyword id. |
| 152 | + * @return void |
|
| 145 | 153 | */ |
| 146 | 154 | public function deleteKeyword(int $videoManagerId, string $videoId, int $keywordId): void; |
| 147 | 155 | |
@@ -184,14 +192,23 @@ discard block |
||
| 184 | 192 | */ |
| 185 | 193 | public function getVideoDownloadUrls(int $videoManagerId, string $videoId): ArrayCollection; |
| 186 | 194 | |
| 195 | + /** |
|
| 196 | + * @return \MovingImage\Client\VMPro\Entity\Thumbnail|null |
|
| 197 | + */ |
|
| 187 | 198 | public function createThumbnailByTimestamp( |
| 188 | 199 | int $videoManagerId, |
| 189 | 200 | string $videoId, |
| 190 | 201 | int $timestamp |
| 191 | 202 | ): ?ThumbnailInterface; |
| 192 | 203 | |
| 204 | + /** |
|
| 205 | + * @return \MovingImage\Client\VMPro\Entity\Thumbnail|null |
|
| 206 | + */ |
|
| 193 | 207 | public function getThumbnail(int $videoManagerId, string $videoId, int $thumbnailId): ?ThumbnailInterface; |
| 194 | 208 | |
| 209 | + /** |
|
| 210 | + * @return void |
|
| 211 | + */ |
|
| 195 | 212 | public function updateThumbnail(int $videoManagerId, string $videoId, int $thumbnailId, bool $active): void; |
| 196 | 213 | |
| 197 | 214 | public function getUserInfo(string $token): UserInfo; |
@@ -206,6 +223,9 @@ discard block |
||
| 206 | 223 | |
| 207 | 224 | public function getCorporateTubeMetadata(int $videoManagerId, string $videoId): CorporateTubeMetaData; |
| 208 | 225 | |
| 226 | + /** |
|
| 227 | + * @return void |
|
| 228 | + */ |
|
| 209 | 229 | public function updateCorporateTubeMetadata( |
| 210 | 230 | int $videoManagerId, |
| 211 | 231 | string $videoId, |