@@ -37,6 +37,9 @@ discard block |
||
37 | 37 | $this->reflectConstructorArgs(); |
38 | 38 | } |
39 | 39 | |
40 | + /** |
|
41 | + * @param string $type |
|
42 | + */ |
|
40 | 43 | public function addMagicGetSetMethod( |
41 | 44 | $type, |
42 | 45 | $fieldName, |
@@ -67,6 +70,10 @@ discard block |
||
67 | 70 | $this->magicGetSetMethods[$name] = $magicMethod; |
68 | 71 | } |
69 | 72 | |
73 | + /** |
|
74 | + * @param string $methodName |
|
75 | + * @param string $returnTypeHint |
|
76 | + */ |
|
70 | 77 | public function addMagicMethod( |
71 | 78 | $methodName, |
72 | 79 | $args, |
@@ -132,7 +139,7 @@ discard block |
||
132 | 139 | |
133 | 140 | /** |
134 | 141 | * @param $className |
135 | - * @param $alias |
|
142 | + * @param string $alias |
|
136 | 143 | */ |
137 | 144 | public function addUse($className, $alias = null) |
138 | 145 | { |
@@ -251,6 +258,9 @@ discard block |
||
251 | 258 | return $type . ucfirst($fieldName); |
252 | 259 | } |
253 | 260 | |
261 | + /** |
|
262 | + * @param string[] $matches |
|
263 | + */ |
|
254 | 264 | protected function reflectMagicMethods($matches) |
255 | 265 | { |
256 | 266 | list(, $static, $returnTypeHint, $returnsReference, $name, $args, $shortDescription) = $matches; |
@@ -300,7 +310,7 @@ discard block |
||
300 | 310 | } |
301 | 311 | |
302 | 312 | /** |
303 | - * @return mixed |
|
313 | + * @return string |
|
304 | 314 | */ |
305 | 315 | public function getNamespace() |
306 | 316 | { |
@@ -340,7 +350,7 @@ discard block |
||
340 | 350 | } |
341 | 351 | |
342 | 352 | /** |
343 | - * @return mixed |
|
353 | + * @return string |
|
344 | 354 | */ |
345 | 355 | public function getFileName() |
346 | 356 | { |
@@ -356,7 +366,7 @@ discard block |
||
356 | 366 | } |
357 | 367 | |
358 | 368 | /** |
359 | - * @return mixed |
|
369 | + * @return string |
|
360 | 370 | */ |
361 | 371 | public function getShortClassName() |
362 | 372 | { |
@@ -8,6 +8,9 @@ |
||
8 | 8 | |
9 | 9 | trait LocaleTrait |
10 | 10 | { |
11 | + /** |
|
12 | + * @param string $locale |
|
13 | + */ |
|
11 | 14 | public function setLocale($locale) |
12 | 15 | { |
13 | 16 | $locale = \Locale::canonicalize($locale); |
@@ -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 | */ |