@@ -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; |
@@ -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; |
@@ -22,24 +22,31 @@ discard block |
||
| 22 | 22 | { |
| 23 | 23 | /** |
| 24 | 24 | * @throws ElementNotFoundException |
| 25 | + * @return void |
|
| 25 | 26 | */ |
| 26 | 27 | public function addToCart(): void; |
| 27 | 28 | |
| 28 | 29 | /** |
| 29 | 30 | * @throws ElementNotFoundException |
| 31 | + * @return void |
|
| 30 | 32 | */ |
| 31 | 33 | public function addToCartWithQuantity(string $quantity): void; |
| 32 | 34 | |
| 33 | 35 | /** |
| 34 | 36 | * @throws ElementNotFoundException |
| 37 | + * @return void |
|
| 35 | 38 | */ |
| 36 | 39 | public function addToCartWithVariant(string $variant): void; |
| 37 | 40 | |
| 38 | 41 | /** |
| 39 | 42 | * @throws ElementNotFoundException |
| 43 | + * @return void |
|
| 40 | 44 | */ |
| 41 | 45 | public function addToCartWithOption(ProductOptionInterface $option, string $optionValue): void; |
| 42 | 46 | |
| 47 | + /** |
|
| 48 | + * @return null|string |
|
| 49 | + */ |
|
| 43 | 50 | public function getAttributeByName(string $name): ?string; |
| 44 | 51 | |
| 45 | 52 | public function getAttributes(): array; |
@@ -70,9 +77,18 @@ discard block |
||
| 70 | 77 | |
| 71 | 78 | public function countReviews(): int; |
| 72 | 79 | |
| 80 | + /** |
|
| 81 | + * @return void |
|
| 82 | + */ |
|
| 73 | 83 | public function selectOption(string $optionCode, string $optionValue): void; |
| 74 | 84 | |
| 85 | + /** |
|
| 86 | + * @return void |
|
| 87 | + */ |
|
| 75 | 88 | public function selectVariant(string $variantName): void; |
| 76 | 89 | |
| 90 | + /** |
|
| 91 | + * @return void |
|
| 92 | + */ |
|
| 77 | 93 | public function visit(string $url): void; |
| 78 | 94 | } |
@@ -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; |