@@ -44,7 +44,7 @@ |
||
44 | 44 | * @param string $attributeName |
45 | 45 | * @param Enum $enum |
46 | 46 | * @param Context|callable $context |
47 | - * @return ProductTypeChangeLabelAction |
|
47 | + * @return ProductTypeChangePlainEnumLabelAction |
|
48 | 48 | */ |
49 | 49 | public static function ofAttributeNameAndEnumValue($attributeName, Enum $enum, $context = null) |
50 | 50 | { |
@@ -44,7 +44,7 @@ |
||
44 | 44 | * @param string $attributeName |
45 | 45 | * @param EnumCollection $values |
46 | 46 | * @param Context|callable $context |
47 | - * @return ProductTypeAddPlainEnumValueAction |
|
47 | + * @return ProductTypeChangePlainEnumValueOrderAction |
|
48 | 48 | */ |
49 | 49 | public static function ofAttributeNameAndValues($attributeName, EnumCollection $values, $context = null) |
50 | 50 | { |
@@ -7,7 +7,6 @@ |
||
7 | 7 | |
8 | 8 | use Commercetools\Core\Model\Common\Context; |
9 | 9 | use Commercetools\Core\Request\AbstractAction; |
10 | -use Commercetools\Core\Model\Customer\CustomerReference; |
|
11 | 10 | use Commercetools\Core\Model\Common\ResourceIdentifier; |
12 | 11 | |
13 | 12 | /** |
@@ -8,7 +8,6 @@ |
||
8 | 8 | use Commercetools\Core\Model\Common\Context; |
9 | 9 | use Commercetools\Core\Model\Type\FieldDefinition; |
10 | 10 | use Commercetools\Core\Request\AbstractAction; |
11 | -use Commercetools\Core\Model\Common\LocalizedString; |
|
12 | 11 | |
13 | 12 | /** |
14 | 13 | * @package Commercetools\Core\Request\Types\Command |
@@ -104,6 +104,9 @@ |
||
104 | 104 | return (!in_array($statusCode, [200, 201])); |
105 | 105 | } |
106 | 106 | |
107 | + /** |
|
108 | + * @param string $fieldName |
|
109 | + */ |
|
107 | 110 | protected function getResponseField($fieldName, $default = '') |
108 | 111 | { |
109 | 112 | $result = $this->toArray(); |
@@ -21,6 +21,9 @@ discard block |
||
21 | 21 | private $customerGroup; |
22 | 22 | private $channel; |
23 | 23 | |
24 | + /** |
|
25 | + * @param string $country |
|
26 | + */ |
|
24 | 27 | public function __construct( |
25 | 28 | $currency, |
26 | 29 | $country = null, |
@@ -136,6 +139,9 @@ discard block |
||
136 | 139 | return is_null($price->getValidFrom()) && is_null($price->getValidUntil()); |
137 | 140 | } |
138 | 141 | |
142 | + /** |
|
143 | + * @param string $field |
|
144 | + */ |
|
139 | 145 | private function priceHas(Price $price, $field) |
140 | 146 | { |
141 | 147 | return !is_null($price->get($field)); |
@@ -7,9 +7,7 @@ |
||
7 | 7 | |
8 | 8 | use Commercetools\Core\Model\Common\Context; |
9 | 9 | use Commercetools\Core\Model\Common\Money; |
10 | -use Commercetools\Core\Model\TaxCategory\ExternalTaxRateDraft; |
|
11 | 10 | use Commercetools\Core\Request\AbstractAction; |
12 | -use Commercetools\Core\Model\Cart\ExternalLineItemTotalPrice; |
|
13 | 11 | |
14 | 12 | /** |
15 | 13 | * @package Commercetools\Core\Request\Carts\Command |
@@ -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 | */ |