@@ -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 | } |
@@ -38,6 +38,9 @@ discard block |
||
38 | 38 | |
39 | 39 | public function hasShippingMethod(ShippingMethodInterface $shippingMethod): bool; |
40 | 40 | |
41 | + /** |
|
42 | + * @return void |
|
43 | + */ |
|
41 | 44 | public function addNotes(string $notes): void; |
42 | 45 | |
43 | 46 | public function hasPromotionTotal(string $promotionTotal): bool; |
@@ -62,12 +65,24 @@ discard block |
||
62 | 65 | |
63 | 66 | public function hasCurrency(string $currencyCode): bool; |
64 | 67 | |
68 | + /** |
|
69 | + * @return void |
|
70 | + */ |
|
65 | 71 | public function confirmOrder(): void; |
66 | 72 | |
73 | + /** |
|
74 | + * @return void |
|
75 | + */ |
|
67 | 76 | public function changeAddress(): void; |
68 | 77 | |
78 | + /** |
|
79 | + * @return void |
|
80 | + */ |
|
69 | 81 | public function changeShippingMethod(): void; |
70 | 82 | |
83 | + /** |
|
84 | + * @return void |
|
85 | + */ |
|
71 | 86 | public function changePaymentMethod(): void; |
72 | 87 | |
73 | 88 | public function hasShippingProvinceName(string $provinceName): bool; |
@@ -17,18 +17,33 @@ |
||
17 | 17 | |
18 | 18 | interface SelectPaymentPageInterface extends SymfonyPageInterface |
19 | 19 | { |
20 | + /** |
|
21 | + * @return void |
|
22 | + */ |
|
20 | 23 | public function selectPaymentMethod(string $paymentMethod): void; |
21 | 24 | |
22 | 25 | public function hasPaymentMethod(string $paymentMethodName): bool; |
23 | 26 | |
24 | 27 | public function getItemSubtotal(string $itemName): string; |
25 | 28 | |
29 | + /** |
|
30 | + * @return void |
|
31 | + */ |
|
26 | 32 | public function nextStep(): void; |
27 | 33 | |
34 | + /** |
|
35 | + * @return void |
|
36 | + */ |
|
28 | 37 | public function changeShippingMethod(): void; |
29 | 38 | |
39 | + /** |
|
40 | + * @return void |
|
41 | + */ |
|
30 | 42 | public function changeShippingMethodByStepLabel(): void; |
31 | 43 | |
44 | + /** |
|
45 | + * @return void |
|
46 | + */ |
|
32 | 47 | public function changeAddressByStepLabel(): void; |
33 | 48 | |
34 | 49 | public function hasNoAvailablePaymentMethodsWarning(): bool; |
@@ -17,6 +17,9 @@ discard block |
||
17 | 17 | |
18 | 18 | interface SelectShippingPageInterface extends SymfonyPageInterface |
19 | 19 | { |
20 | + /** |
|
21 | + * @return void |
|
22 | + */ |
|
20 | 23 | public function selectShippingMethod(string $shippingMethod): void; |
21 | 24 | |
22 | 25 | public function getShippingMethods(): array; |
@@ -29,10 +32,19 @@ discard block |
||
29 | 32 | |
30 | 33 | public function getItemSubtotal(string $itemName): string; |
31 | 34 | |
35 | + /** |
|
36 | + * @return void |
|
37 | + */ |
|
32 | 38 | public function nextStep(): void; |
33 | 39 | |
40 | + /** |
|
41 | + * @return void |
|
42 | + */ |
|
34 | 43 | public function changeAddress(): void; |
35 | 44 | |
45 | + /** |
|
46 | + * @return void |
|
47 | + */ |
|
36 | 48 | public function changeAddressByStepLabel(): void; |
37 | 49 | |
38 | 50 | public function getPurchaserEmail(): string; |
@@ -464,6 +464,9 @@ |
||
464 | 464 | return new ProductTranslation(); |
465 | 465 | } |
466 | 466 | |
467 | + /** |
|
468 | + * @param string $fallbackLocaleCode |
|
469 | + */ |
|
467 | 470 | protected function getAttributeInDifferentLocale( |
468 | 471 | ProductAttributeValueInterface $attributeValue, |
469 | 472 | string $localeCode, |
@@ -17,10 +17,19 @@ |
||
17 | 17 | |
18 | 18 | interface ContactPageInterface extends PageInterface |
19 | 19 | { |
20 | + /** |
|
21 | + * @return void |
|
22 | + */ |
|
20 | 23 | public function specifyEmail(?string $email): void; |
21 | 24 | |
25 | + /** |
|
26 | + * @return void |
|
27 | + */ |
|
22 | 28 | public function specifyMessage(?string $message): void; |
23 | 29 | |
30 | + /** |
|
31 | + * @return void |
|
32 | + */ |
|
24 | 33 | public function send(): void; |
25 | 34 | |
26 | 35 | public function getValidationMessageFor(string $element): string; |
@@ -21,6 +21,9 @@ discard block |
||
21 | 21 | |
22 | 22 | public function hasLogoutButton(): bool; |
23 | 23 | |
24 | + /** |
|
25 | + * @return void |
|
26 | + */ |
|
24 | 27 | public function logOut(); |
25 | 28 | |
26 | 29 | public function getFullName(): string; |
@@ -29,12 +32,18 @@ discard block |
||
29 | 32 | |
30 | 33 | public function getAvailableCurrencies(): array; |
31 | 34 | |
35 | + /** |
|
36 | + * @return void |
|
37 | + */ |
|
32 | 38 | public function switchCurrency(string $currencyCode): void; |
33 | 39 | |
34 | 40 | public function getActiveLocale(): string; |
35 | 41 | |
36 | 42 | public function getAvailableLocales(): array; |
37 | 43 | |
44 | + /** |
|
45 | + * @return void |
|
46 | + */ |
|
38 | 47 | public function switchLocale(string $localeCode): void; |
39 | 48 | |
40 | 49 | public function getLatestProductsNames(): array; |
@@ -19,8 +19,14 @@ |
||
19 | 19 | { |
20 | 20 | public function hasPayAction(): bool; |
21 | 21 | |
22 | + /** |
|
23 | + * @return void |
|
24 | + */ |
|
22 | 25 | public function pay(): void; |
23 | 26 | |
27 | + /** |
|
28 | + * @return void |
|
29 | + */ |
|
24 | 30 | public function choosePaymentMethod(string $paymentMethodName): void; |
25 | 31 | |
26 | 32 | public function getNotifications(): array; |
@@ -17,8 +17,14 @@ discard block |
||
17 | 17 | |
18 | 18 | interface ThankYouPageInterface extends SymfonyPageInterface |
19 | 19 | { |
20 | + /** |
|
21 | + * @return void |
|
22 | + */ |
|
20 | 23 | public function goToTheChangePaymentMethodPage(): void; |
21 | 24 | |
25 | + /** |
|
26 | + * @return void |
|
27 | + */ |
|
22 | 28 | public function goToOrderDetailsInAccount(): void; |
23 | 29 | |
24 | 30 | public function hasThankYouMessage(): bool; |
@@ -31,5 +37,8 @@ discard block |
||
31 | 37 | |
32 | 38 | public function hasRegistrationButton(): bool; |
33 | 39 | |
40 | + /** |
|
41 | + * @return void |
|
42 | + */ |
|
34 | 43 | public function createAccount(): void; |
35 | 44 | } |