@@ -103,6 +103,9 @@ discard block |
||
| 103 | 103 | return (!in_array($statusCode, [200, 201])); |
| 104 | 104 | } |
| 105 | 105 | |
| 106 | + /** |
|
| 107 | + * @param string $fieldName |
|
| 108 | + */ |
|
| 106 | 109 | protected function getResponseField($fieldName, $default = '') |
| 107 | 110 | { |
| 108 | 111 | $result = $this->toArray(); |
@@ -110,7 +113,7 @@ discard block |
||
| 110 | 113 | } |
| 111 | 114 | |
| 112 | 115 | /** |
| 113 | - * @return array |
|
| 116 | + * @return ErrorContainer |
|
| 114 | 117 | */ |
| 115 | 118 | public function getErrors() |
| 116 | 119 | { |
@@ -5,7 +5,6 @@ |
||
| 5 | 5 | |
| 6 | 6 | namespace Commercetools\Core\Response; |
| 7 | 7 | |
| 8 | -use Commercetools\Core\Error\ErrorContainer; |
|
| 9 | 8 | use Commercetools\Core\Model\Common\Context; |
| 10 | 9 | use Commercetools\Core\Request\ClientRequestInterface; |
| 11 | 10 | use Psr\Http\Message\ResponseInterface; |