@@ -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)); |
@@ -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 | */ |
@@ -105,7 +105,7 @@ |
||
| 105 | 105 | } |
| 106 | 106 | |
| 107 | 107 | /** |
| 108 | - * @param $fieldName |
|
| 108 | + * @param string $fieldName |
|
| 109 | 109 | * @param mixed $default |
| 110 | 110 | * @return mixed |
| 111 | 111 | */ |
@@ -7,10 +7,6 @@ |
||
| 7 | 7 | |
| 8 | 8 | use Commercetools\Core\Model\Common\Address; |
| 9 | 9 | use Commercetools\Core\Model\Common\Context; |
| 10 | -use Commercetools\Core\Model\Order\DeliveryItemCollection; |
|
| 11 | -use Commercetools\Core\Model\Order\ParcelCollection; |
|
| 12 | -use Commercetools\Core\Model\Order\ParcelMeasurements; |
|
| 13 | -use Commercetools\Core\Model\Order\TrackingData; |
|
| 14 | 10 | use Commercetools\Core\Request\AbstractAction; |
| 15 | 11 | |
| 16 | 12 | /** |