@@ -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 | { |
@@ -64,6 +64,7 @@ discard block |
||
| 64 | 64 | |
| 65 | 65 | /** |
| 66 | 66 | * Update a video with new values. |
| 67 | + * @return void |
|
| 67 | 68 | */ |
| 68 | 69 | public function updateVideo( |
| 69 | 70 | int $videoManagerId, |
@@ -75,16 +76,19 @@ discard block |
||
| 75 | 76 | |
| 76 | 77 | /** |
| 77 | 78 | * Add a video to a channel. |
| 79 | + * @return void |
|
| 78 | 80 | */ |
| 79 | 81 | public function addVideoToChannel(int $videoManagerId, string $videoId, int $channelId): void; |
| 80 | 82 | |
| 81 | 83 | /** |
| 82 | 84 | * Remove a video from a channel. |
| 85 | + * @return void |
|
| 83 | 86 | */ |
| 84 | 87 | public function removeVideoFromChannel(int $videoManagerId, string $videoId, int $channelId): void; |
| 85 | 88 | |
| 86 | 89 | /** |
| 87 | 90 | * Add/remove/update custom metadata fields to a video. |
| 91 | + * @return void |
|
| 88 | 92 | */ |
| 89 | 93 | public function setCustomMetaData(int $videoManagerId, string $videoId, array $metadata): void; |
| 90 | 94 | |
@@ -100,6 +104,7 @@ discard block |
||
| 100 | 104 | |
| 101 | 105 | /** |
| 102 | 106 | * Delete a video. |
| 107 | + * @return void |
|
| 103 | 108 | */ |
| 104 | 109 | public function deleteVideo(int $videoManagerId, string $videoId): void; |
| 105 | 110 | |
@@ -128,11 +133,13 @@ discard block |
||
| 128 | 133 | |
| 129 | 134 | /** |
| 130 | 135 | * Update video keywords. |
| 136 | + * @return void |
|
| 131 | 137 | */ |
| 132 | 138 | public function updateKeywords(int $videoManagerId, string $videoId, array $keywords): void; |
| 133 | 139 | |
| 134 | 140 | /** |
| 135 | 141 | * Delete keyword from video by keyword id. |
| 142 | + * @return void |
|
| 136 | 143 | */ |
| 137 | 144 | public function deleteKeyword(int $videoManagerId, string $videoId, int $keywordId): void; |
| 138 | 145 | |
@@ -175,14 +182,23 @@ discard block |
||
| 175 | 182 | */ |
| 176 | 183 | public function getVideoDownloadUrls(int $videoManagerId, string $videoId): ArrayCollection; |
| 177 | 184 | |
| 185 | + /** |
|
| 186 | + * @return \MovingImage\Client\VMPro\Entity\Thumbnail|null |
|
| 187 | + */ |
|
| 178 | 188 | public function createThumbnailByTimestamp( |
| 179 | 189 | int $videoManagerId, |
| 180 | 190 | string $videoId, |
| 181 | 191 | int $timestamp |
| 182 | 192 | ): ?ThumbnailInterface; |
| 183 | 193 | |
| 194 | + /** |
|
| 195 | + * @return \MovingImage\Client\VMPro\Entity\Thumbnail|null |
|
| 196 | + */ |
|
| 184 | 197 | public function getThumbnail(int $videoManagerId, string $videoId, int $thumbnailId): ?ThumbnailInterface; |
| 185 | 198 | |
| 199 | + /** |
|
| 200 | + * @return void |
|
| 201 | + */ |
|
| 186 | 202 | public function updateThumbnail(int $videoManagerId, string $videoId, int $thumbnailId, bool $active): void; |
| 187 | 203 | |
| 188 | 204 | public function getUserInfo(string $token): UserInfo; |