@@ -400,6 +400,7 @@ discard block |
||
400 | 400 | |
401 | 401 | /** |
402 | 402 | * @Given /^([^"]+) gives ("[^"]+%") discount on shipping to every order$/ |
403 | + * @param integer $discount |
|
403 | 404 | */ |
404 | 405 | public function itGivesPercentageDiscountOnShippingToEveryOrder(PromotionInterface $promotion, $discount) |
405 | 406 | { |
@@ -725,6 +726,7 @@ discard block |
||
725 | 726 | |
726 | 727 | /** |
727 | 728 | * @Given /^([^"]+) gives ("[^"]+%") discount on shipping to every order over ("(?:€|£|\$)[^"]+")$/ |
729 | + * @param integer $discount |
|
728 | 730 | */ |
729 | 731 | public function itGivesDiscountOnShippingToEveryOrderOver( |
730 | 732 | PromotionInterface $promotion, |
@@ -899,6 +901,9 @@ discard block |
||
899 | 901 | return $coupon; |
900 | 902 | } |
901 | 903 | |
904 | + /** |
|
905 | + * @param string $prefix |
|
906 | + */ |
|
902 | 907 | private function generateCoupons( |
903 | 908 | int $amount, |
904 | 909 | PromotionInterface $promotion, |
@@ -23,17 +23,38 @@ |
||
23 | 23 | |
24 | 24 | public function checkGenerationValidation(string $message): bool; |
25 | 25 | |
26 | + /** |
|
27 | + * @return void |
|
28 | + */ |
|
26 | 29 | public function generate(): void; |
27 | 30 | |
31 | + /** |
|
32 | + * @return void |
|
33 | + */ |
|
28 | 34 | public function specifyAmount(?int $amount): void; |
29 | 35 | |
36 | + /** |
|
37 | + * @return void |
|
38 | + */ |
|
30 | 39 | public function specifyCodeLength(?int $codeLength): void; |
31 | 40 | |
41 | + /** |
|
42 | + * @return void |
|
43 | + */ |
|
32 | 44 | public function setExpiresAt(\DateTimeInterface $date): void; |
33 | 45 | |
46 | + /** |
|
47 | + * @return void |
|
48 | + */ |
|
34 | 49 | public function setUsageLimit(int $limit): void; |
35 | 50 | |
51 | + /** |
|
52 | + * @return void |
|
53 | + */ |
|
36 | 54 | public function specifyPrefix(string $prefix): void; |
37 | 55 | |
56 | + /** |
|
57 | + * @return void |
|
58 | + */ |
|
38 | 59 | public function specifySuffix(string $suffix): void; |
39 | 60 | } |
@@ -19,9 +19,18 @@ |
||
19 | 19 | { |
20 | 20 | public function hasValidationErrorWith(string $message): bool; |
21 | 21 | |
22 | + /** |
|
23 | + * @return void |
|
24 | + */ |
|
22 | 25 | public function logIn(): void; |
23 | 26 | |
27 | + /** |
|
28 | + * @return void |
|
29 | + */ |
|
24 | 30 | public function specifyPassword(string $password): void; |
25 | 31 | |
32 | + /** |
|
33 | + * @return void |
|
34 | + */ |
|
26 | 35 | public function specifyUsername(string $username): void; |
27 | 36 | } |
@@ -19,7 +19,13 @@ |
||
19 | 19 | { |
20 | 20 | public function checkValidationMessageFor(string $element, string $message): bool; |
21 | 21 | |
22 | + /** |
|
23 | + * @return void |
|
24 | + */ |
|
22 | 25 | public function reset(): void; |
23 | 26 | |
27 | + /** |
|
28 | + * @return void |
|
29 | + */ |
|
24 | 30 | public function specifyEmail(?string $email): void; |
25 | 31 | } |
@@ -23,10 +23,19 @@ |
||
23 | 23 | |
24 | 24 | public function getLastProductNameFromList(): string; |
25 | 25 | |
26 | + /** |
|
27 | + * @return void |
|
28 | + */ |
|
26 | 29 | public function search(string $name): void; |
27 | 30 | |
31 | + /** |
|
32 | + * @return void |
|
33 | + */ |
|
28 | 34 | public function sort(string $orderNumber): void; |
29 | 35 | |
36 | + /** |
|
37 | + * @return void |
|
38 | + */ |
|
30 | 39 | public function clearFilter(): void; |
31 | 40 | |
32 | 41 | public function isProductOnList(string $productName): bool; |
@@ -17,5 +17,8 @@ |
||
17 | 17 | |
18 | 18 | interface OrderEmailManagerInterface |
19 | 19 | { |
20 | + /** |
|
21 | + * @return void |
|
22 | + */ |
|
20 | 23 | public function sendConfirmationEmail(OrderInterface $order): void; |
21 | 24 | } |
@@ -17,6 +17,12 @@ |
||
17 | 17 | |
18 | 18 | interface ContactEmailManagerInterface |
19 | 19 | { |
20 | + /** |
|
21 | + * @param ChannelInterface $channel |
|
22 | + * @param string $localeCode |
|
23 | + * |
|
24 | + * @return void |
|
25 | + */ |
|
20 | 26 | public function sendContactRequest( |
21 | 27 | array $data, |
22 | 28 | array $recipients, |
@@ -123,7 +123,7 @@ |
||
123 | 123 | public static function findOneBy(RepositoryInterface $repository, string $field, array $criteria = []): \Closure |
124 | 124 | { |
125 | 125 | return |
126 | - /** @param mixed $previousValue */ |
|
126 | + /** @param string $previousValue */ |
|
127 | 127 | function (Options $options, $previousValue) use ($repository, $field, $criteria): ?object { |
128 | 128 | if (null === $previousValue || [] === $previousValue) { |
129 | 129 | return $previousValue; |
@@ -102,7 +102,7 @@ |
||
102 | 102 | |
103 | 103 | public static function findBy(RepositoryInterface $repository, string $field, array $criteria = []): \Closure |
104 | 104 | { |
105 | - return function (Options $options, ?array $previousValues) use ($repository, $field, $criteria): ?iterable { |
|
105 | + return function (Options $options, ?array $previousValues) use ($repository, $field, $criteria) : ?iterable { |
|
106 | 106 | if (null === $previousValues || [] === $previousValues) { |
107 | 107 | return $previousValues; |
108 | 108 | } |
@@ -95,6 +95,7 @@ discard block |
||
95 | 95 | |
96 | 96 | /** |
97 | 97 | * @param object $entity |
98 | + * @param string|null $manager |
|
98 | 99 | */ |
99 | 100 | private function getProperObjectManager(?string $manager, $entity): ?ObjectManager |
100 | 101 | { |
@@ -119,6 +120,7 @@ discard block |
||
119 | 120 | |
120 | 121 | /** |
121 | 122 | * @throws ConstraintDefinitionException |
123 | + * @param \Doctrine\Persistence\ObjectManager|null $objectManager |
|
122 | 124 | */ |
123 | 125 | private function validateObjectManager(?ObjectManager $objectManager, string $exceptionMessage): void |
124 | 126 | { |