@@ -20,7 +20,7 @@ |
||
| 20 | 20 | * @param string $uri |
| 21 | 21 | * @param array $options |
| 22 | 22 | * |
| 23 | - * @return \GuzzleHttp\Message\ResponseInterface |
|
| 23 | + * @return \Psr\Http\Message\ResponseInterface |
|
| 24 | 24 | */ |
| 25 | 25 | protected function _doRequest($method, $uri, $options) |
| 26 | 26 | { |
@@ -3,11 +3,11 @@ |
||
| 3 | 3 | namespace MovingImage\Client\VMPro\ApiClient; |
| 4 | 4 | |
| 5 | 5 | use GuzzleHttp\Message\Response; |
| 6 | -use MovingImage\Client\VMPro\ApiClient; |
|
| 7 | -use MovingImage\Client\VMPro\Interfaces\ApiClientInterface; |
|
| 8 | 6 | use GuzzleHttp\Message\ResponseInterface; |
| 9 | -use MovingImage\Client\VMPro\Exception; |
|
| 10 | 7 | use GuzzleHttp\Stream\Stream; |
| 8 | +use MovingImage\Client\VMPro\ApiClient; |
|
| 9 | +use MovingImage\Client\VMPro\Exception; |
|
| 10 | +use MovingImage\Client\VMPro\Interfaces\ApiClientInterface; |
|
| 11 | 11 | |
| 12 | 12 | /** |
| 13 | 13 | * Class Guzzle5ApiClient. |
@@ -2,8 +2,8 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace MovingImage\Client\VMPro\Entity; |
| 4 | 4 | |
| 5 | -use JMS\Serializer\Annotation\Type; |
|
| 6 | 5 | use JMS\Serializer\Annotation\SerializedName; |
| 6 | +use JMS\Serializer\Annotation\Type; |
|
| 7 | 7 | use MovingImage\Meta\Interfaces\VideoInterface; |
| 8 | 8 | |
| 9 | 9 | /** |
@@ -2,10 +2,10 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace MovingImage\Client\VMPro\Entity; |
| 4 | 4 | |
| 5 | -use JMS\Serializer\Annotation\Type; |
|
| 6 | 5 | use JMS\Serializer\Annotation\HandlerCallback; |
| 7 | -use JMS\Serializer\JsonDeserializationVisitor; |
|
| 6 | +use JMS\Serializer\Annotation\Type; |
|
| 8 | 7 | use JMS\Serializer\DeserializationContext; |
| 8 | +use JMS\Serializer\JsonDeserializationVisitor; |
|
| 9 | 9 | use MovingImage\Meta\Interfaces\AttachmentInterface; |
| 10 | 10 | |
| 11 | 11 | /** |
@@ -3,8 +3,8 @@ |
||
| 3 | 3 | namespace MovingImage\Client\VMPro\Entity; |
| 4 | 4 | |
| 5 | 5 | use Doctrine\Common\Collections\ArrayCollection; |
| 6 | -use JMS\Serializer\Annotation\Type; |
|
| 7 | 6 | use JMS\Serializer\Annotation\SerializedName; |
| 7 | +use JMS\Serializer\Annotation\Type; |
|
| 8 | 8 | use MovingImage\Meta\Interfaces\ChannelInterface; |
| 9 | 9 | |
| 10 | 10 | /** |
@@ -10,13 +10,13 @@ |
||
| 10 | 10 | use MovingImage\Client\VMPro\Entity\ChannelsRequestParameters; |
| 11 | 11 | use MovingImage\Client\VMPro\Entity\EmbedCode; |
| 12 | 12 | use MovingImage\Client\VMPro\Entity\Keyword; |
| 13 | +use MovingImage\Client\VMPro\Entity\Thumbnail; |
|
| 13 | 14 | use MovingImage\Client\VMPro\Entity\UserInfo; |
| 14 | 15 | use MovingImage\Client\VMPro\Entity\Video; |
| 15 | 16 | use MovingImage\Client\VMPro\Entity\VideoDownloadUrl; |
| 16 | 17 | use MovingImage\Client\VMPro\Entity\VideoManager; |
| 17 | 18 | use MovingImage\Client\VMPro\Entity\VideoRequestParameters; |
| 18 | 19 | use MovingImage\Client\VMPro\Entity\VideosRequestParameters; |
| 19 | -use MovingImage\Client\VMPro\Entity\Thumbnail; |
|
| 20 | 20 | use MovingImage\Client\VMPro\Interfaces\ApiClientInterface; |
| 21 | 21 | use MovingImage\Client\VMPro\Util\ChannelTrait; |
| 22 | 22 | use MovingImage\Client\VMPro\Util\Logging\Traits\LoggerAwareTrait; |
@@ -168,7 +168,7 @@ discard block |
||
| 168 | 168 | * @param string $data |
| 169 | 169 | * @param string $serialisationClass |
| 170 | 170 | * |
| 171 | - * @return object |
|
| 171 | + * @return \MovingImage\Meta\Interfaces\ChannelInterface[] |
|
| 172 | 172 | */ |
| 173 | 173 | protected function deserialize($data, $serialisationClass) |
| 174 | 174 | { |
@@ -235,7 +235,7 @@ discard block |
||
| 235 | 235 | * @param string $method |
| 236 | 236 | * @param string $uri |
| 237 | 237 | * @param array $options |
| 238 | - * @param mixed $response |
|
| 238 | + * @param ResponseInterface $response |
|
| 239 | 239 | * |
| 240 | 240 | * @return bool |
| 241 | 241 | */ |
@@ -267,7 +267,7 @@ discard block |
||
| 267 | 267 | * Serializes the provided response to a string, suitable for caching. |
| 268 | 268 | * The type of the $response argument varies depending on the guzzle version. |
| 269 | 269 | * |
| 270 | - * @param mixed $response |
|
| 270 | + * @param ResponseInterface $response |
|
| 271 | 271 | * |
| 272 | 272 | * @return string |
| 273 | 273 | */ |