@@ -140,6 +140,9 @@ discard block |
||
140 | 140 | return $this->getTyped($field); |
141 | 141 | } |
142 | 142 | |
143 | + /** |
|
144 | + * @param string $field |
|
145 | + */ |
|
143 | 146 | protected function fieldDefinitionType($field) |
144 | 147 | { |
145 | 148 | return $this->fieldDefinitionValue($field, static::TYPE); |
@@ -182,11 +185,17 @@ discard block |
||
182 | 185 | $this->initialized[$field] = true; |
183 | 186 | } |
184 | 187 | |
188 | + /** |
|
189 | + * @param string $field |
|
190 | + */ |
|
185 | 191 | public function isOptional($field) |
186 | 192 | { |
187 | 193 | return $this->fieldDefinitionValue($field, static::OPTIONAL, false); |
188 | 194 | } |
189 | 195 | |
196 | + /** |
|
197 | + * @param string $field |
|
198 | + */ |
|
190 | 199 | protected function decorateField($field, $value) |
191 | 200 | { |
192 | 201 | if ($decorator = $this->fieldDefinitionValue($field, static::DECORATOR)) { |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | /** |
105 | 105 | * @param RequestInterface $request |
106 | 106 | * @param array $clientOptions |
107 | - * @return ResponseInterface |
|
107 | + * @return null|Response |
|
108 | 108 | * @throws \Commercetools\Core\Error\ApiException |
109 | 109 | * @throws \Commercetools\Core\Error\BadGatewayException |
110 | 110 | * @throws \Commercetools\Core\Error\ConcurrentModificationException |
@@ -187,7 +187,7 @@ discard block |
||
187 | 187 | } |
188 | 188 | |
189 | 189 | /** |
190 | - * @param array $requests |
|
190 | + * @param RequestInterface[] $requests |
|
191 | 191 | * @param array $clientOptions |
192 | 192 | * @return array |
193 | 193 | */ |