@@ -59,7 +59,7 @@ |
||
| 59 | 59 | |
| 60 | 60 | /** |
| 61 | 61 | * @param RequestInterface $request |
| 62 | - * @return ResponseInterface |
|
| 62 | + * @return null|Response |
|
| 63 | 63 | * @throws \Commercetools\Core\Error\ApiException |
| 64 | 64 | * @throws \Commercetools\Core\Error\BadGatewayException |
| 65 | 65 | * @throws \Commercetools\Core\Error\ConcurrentModificationException |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | * new protocol version. |
| 77 | 77 | * |
| 78 | 78 | * @param string $version HTTP protocol version |
| 79 | - * @return self |
|
| 79 | + * @return Response |
|
| 80 | 80 | */ |
| 81 | 81 | public function withProtocolVersion($version) |
| 82 | 82 | { |
@@ -181,7 +181,7 @@ discard block |
||
| 181 | 181 | * |
| 182 | 182 | * @param string $name Case-insensitive header field name. |
| 183 | 183 | * @param string|string[] $value Header value(s). |
| 184 | - * @return self |
|
| 184 | + * @return Response |
|
| 185 | 185 | * @throws \InvalidArgumentException for invalid header names or values. |
| 186 | 186 | */ |
| 187 | 187 | public function withHeader($name, $value) |
@@ -202,7 +202,7 @@ discard block |
||
| 202 | 202 | * |
| 203 | 203 | * @param string $name Case-insensitive header field name to add. |
| 204 | 204 | * @param string|string[] $value Header value(s). |
| 205 | - * @return self |
|
| 205 | + * @return Response |
|
| 206 | 206 | * @throws \InvalidArgumentException for invalid header names or values. |
| 207 | 207 | */ |
| 208 | 208 | public function withAddedHeader($name, $value) |
@@ -220,7 +220,7 @@ discard block |
||
| 220 | 220 | * the named header. |
| 221 | 221 | * |
| 222 | 222 | * @param string $name Case-insensitive header field name to remove. |
| 223 | - * @return self |
|
| 223 | + * @return Response |
|
| 224 | 224 | */ |
| 225 | 225 | public function withoutHeader($name) |
| 226 | 226 | { |
@@ -247,7 +247,7 @@ discard block |
||
| 247 | 247 | * new body stream. |
| 248 | 248 | * |
| 249 | 249 | * @param StreamInterface $body Body. |
| 250 | - * @return self |
|
| 250 | + * @return Response |
|
| 251 | 251 | * @throws \InvalidArgumentException When the body is not valid. |
| 252 | 252 | */ |
| 253 | 253 | public function withBody(StreamInterface $body) |
@@ -285,7 +285,7 @@ discard block |
||
| 285 | 285 | * @param string $reasonPhrase The reason phrase to use with the |
| 286 | 286 | * provided status code; if none is provided, implementations MAY |
| 287 | 287 | * use the defaults as suggested in the HTTP specification. |
| 288 | - * @return self |
|
| 288 | + * @return Response |
|
| 289 | 289 | * @throws \InvalidArgumentException For invalid status code arguments. |
| 290 | 290 | */ |
| 291 | 291 | public function withStatus($code, $reasonPhrase = '') |
@@ -10,7 +10,6 @@ |
||
| 10 | 10 | use Commercetools\Core\Model\Common\LocalizedString; |
| 11 | 11 | use Commercetools\Core\Model\Common\Money; |
| 12 | 12 | use Commercetools\Core\Model\Common\Price; |
| 13 | -use Commercetools\Core\Model\Order\ItemState; |
|
| 14 | 13 | use Commercetools\Core\Model\Order\ItemStateCollection; |
| 15 | 14 | use Commercetools\Core\Model\Product\ProductVariant; |
| 16 | 15 | use Commercetools\Core\Model\TaxCategory\TaxRate; |
@@ -151,6 +151,9 @@ |
||
| 151 | 151 | return static::T_UNKNOWN; |
| 152 | 152 | } |
| 153 | 153 | |
| 154 | + /** |
|
| 155 | + * @param string[] $keys |
|
| 156 | + */ |
|
| 154 | 157 | protected function hasKeys($value, $keys) |
| 155 | 158 | { |
| 156 | 159 | if (!is_array($value)) { |
@@ -104,7 +104,7 @@ |
||
| 104 | 104 | |
| 105 | 105 | /** |
| 106 | 106 | * @param string $header |
| 107 | - * @return array |
|
| 107 | + * @return string[] |
|
| 108 | 108 | */ |
| 109 | 109 | public function getHeader($header) |
| 110 | 110 | { |