@@ -352,6 +352,7 @@ discard block |
||
352 | 352 | |
353 | 353 | /** |
354 | 354 | * @Given /^([^"]+) gives ("[^"]+%") discount on shipping to every order$/ |
355 | + * @param integer $discount |
|
355 | 356 | */ |
356 | 357 | public function itGivesPercentageDiscountOnShippingToEveryOrder(PromotionInterface $promotion, $discount) |
357 | 358 | { |
@@ -675,6 +676,7 @@ discard block |
||
675 | 676 | |
676 | 677 | /** |
677 | 678 | * @Given /^([^"]+) gives ("[^"]+%") discount on shipping to every order over ("(?:€|£|\$)[^"]+")$/ |
679 | + * @param integer $discount |
|
678 | 680 | */ |
679 | 681 | public function itGivesDiscountOnShippingToEveryOrderOver( |
680 | 682 | PromotionInterface $promotion, |
@@ -697,7 +699,7 @@ discard block |
||
697 | 699 | } |
698 | 700 | |
699 | 701 | /** |
700 | - * @param array $taxonCodes |
|
702 | + * @param string[] $taxonCodes |
|
701 | 703 | * |
702 | 704 | * @return array |
703 | 705 | */ |
@@ -707,7 +709,7 @@ discard block |
||
707 | 709 | } |
708 | 710 | |
709 | 711 | /** |
710 | - * @param array $productCodes |
|
712 | + * @param string[] $productCodes |
|
711 | 713 | * |
712 | 714 | * @return array |
713 | 715 | */ |
@@ -22,6 +22,7 @@ discard block |
||
22 | 22 | |
23 | 23 | /** |
24 | 24 | * @param int|null $priority |
25 | + * @return void |
|
25 | 26 | */ |
26 | 27 | public function setPriority($priority); |
27 | 28 | |
@@ -32,6 +33,7 @@ discard block |
||
32 | 33 | |
33 | 34 | /** |
34 | 35 | * @param string $name |
36 | + * @return void |
|
35 | 37 | */ |
36 | 38 | public function nameIt($name); |
37 | 39 | |
@@ -49,35 +51,47 @@ discard block |
||
49 | 51 | |
50 | 52 | /** |
51 | 53 | * @param string $limit |
54 | + * @return void |
|
52 | 55 | */ |
53 | 56 | public function fillUsageLimit($limit); |
54 | 57 | |
58 | + /** |
|
59 | + * @return void |
|
60 | + */ |
|
55 | 61 | public function makeExclusive(); |
56 | 62 | |
63 | + /** |
|
64 | + * @return void |
|
65 | + */ |
|
57 | 66 | public function checkCouponBased(); |
58 | 67 | |
59 | 68 | /** |
60 | 69 | * @param string $name |
70 | + * @return void |
|
61 | 71 | */ |
62 | 72 | public function checkChannel($name); |
63 | 73 | |
64 | 74 | /** |
65 | 75 | * @param \DateTime $dateTime |
76 | + * @return void |
|
66 | 77 | */ |
67 | 78 | public function setStartsAt(\DateTime $dateTime); |
68 | 79 | |
69 | 80 | /** |
70 | 81 | * @param \DateTime $dateTime |
82 | + * @return void |
|
71 | 83 | */ |
72 | 84 | public function setEndsAt(\DateTime $dateTime); |
73 | 85 | |
74 | 86 | /** |
75 | 87 | * {@inheritdoc} |
88 | + * @return boolean |
|
76 | 89 | */ |
77 | 90 | public function hasStartsAt(\DateTime $dateTime); |
78 | 91 | |
79 | 92 | /** |
80 | 93 | * {@inheritdoc} |
94 | + * @return boolean |
|
81 | 95 | */ |
82 | 96 | public function hasEndsAt(\DateTime $dateTime); |
83 | 97 | } |
@@ -199,6 +199,7 @@ |
||
199 | 199 | |
200 | 200 | /** |
201 | 201 | * {@inheritdoc} |
202 | + * @param string $name |
|
202 | 203 | */ |
203 | 204 | protected function getElement($name, array $parameters = []) |
204 | 205 | { |
@@ -199,6 +199,7 @@ |
||
199 | 199 | |
200 | 200 | /** |
201 | 201 | * {@inheritdoc} |
202 | + * @param string $name |
|
202 | 203 | */ |
203 | 204 | protected function getElement($name, array $parameters = []) |
204 | 205 | { |
@@ -67,7 +67,7 @@ |
||
67 | 67 | } |
68 | 68 | |
69 | 69 | /** |
70 | - * @return callable |
|
70 | + * @return \Closure |
|
71 | 71 | */ |
72 | 72 | private function optionalCallableNormalizer() |
73 | 73 | { |
@@ -20,16 +20,19 @@ |
||
20 | 20 | { |
21 | 21 | /** |
22 | 22 | * @param string $type |
23 | + * @return void |
|
23 | 24 | */ |
24 | 25 | public function setType($type); |
25 | 26 | |
26 | 27 | /** |
27 | 28 | * @param array $configuration |
29 | + * @return void |
|
28 | 30 | */ |
29 | 31 | public function setConfiguration(array $configuration); |
30 | 32 | |
31 | 33 | /** |
32 | 34 | * @param PromotionInterface $promotion |
35 | + * @return void |
|
33 | 36 | */ |
34 | 37 | public function setPromotion(PromotionInterface $promotion = null); |
35 | 38 | } |
@@ -20,16 +20,19 @@ |
||
20 | 20 | { |
21 | 21 | /** |
22 | 22 | * @param string $type |
23 | + * @return void |
|
23 | 24 | */ |
24 | 25 | public function setType($type); |
25 | 26 | |
26 | 27 | /** |
27 | 28 | * @param array $configuration |
29 | + * @return void |
|
28 | 30 | */ |
29 | 31 | public function setConfiguration(array $configuration); |
30 | 32 | |
31 | 33 | /** |
32 | 34 | * @param PromotionInterface $promotion |
35 | + * @return void |
|
33 | 36 | */ |
34 | 37 | public function setPromotion(PromotionInterface $promotion = null); |
35 | 38 | } |
@@ -55,6 +55,7 @@ |
||
55 | 55 | |
56 | 56 | /** |
57 | 57 | * @Then the :productVariantCode variant of the :product product should appear in the store |
58 | + * @param string $productVariantCode |
|
58 | 59 | */ |
59 | 60 | public function theProductVariantShouldAppearInTheShop($productVariantCode, ProductInterface $product) |
60 | 61 | { |
@@ -519,7 +519,7 @@ |
||
519 | 519 | |
520 | 520 | /** |
521 | 521 | * @param string $element |
522 | - * @param $message |
|
522 | + * @param string $message |
|
523 | 523 | */ |
524 | 524 | private function assertValidationMessage($element, $message) |
525 | 525 | { |