@@ -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 | } |
@@ -28,18 +28,30 @@ discard block |
||
| 28 | 28 | |
| 29 | 29 | public function hasShipment(string $shippingMethodName): bool; |
| 30 | 30 | |
| 31 | + /** |
|
| 32 | + * @return void |
|
| 33 | + */ |
|
| 31 | 34 | public function specifyTrackingCode(string $code): void; |
| 32 | 35 | |
| 33 | 36 | public function canShipOrder(OrderInterface $order): bool; |
| 34 | 37 | |
| 38 | + /** |
|
| 39 | + * @return void |
|
| 40 | + */ |
|
| 35 | 41 | public function shipOrder(OrderInterface $order): void; |
| 36 | 42 | |
| 37 | 43 | public function hasPayment(string $paymentMethodName): bool; |
| 38 | 44 | |
| 39 | 45 | public function canCompleteOrderLastPayment(OrderInterface $order): bool; |
| 40 | 46 | |
| 47 | + /** |
|
| 48 | + * @return void |
|
| 49 | + */ |
|
| 41 | 50 | public function completeOrderLastPayment(OrderInterface $order): void; |
| 42 | 51 | |
| 52 | + /** |
|
| 53 | + * @return void |
|
| 54 | + */ |
|
| 43 | 55 | public function refundOrderLastPayment(OrderInterface $order): void; |
| 44 | 56 | |
| 45 | 57 | public function countItems(): int; |
@@ -94,8 +106,14 @@ discard block |
||
| 94 | 106 | |
| 95 | 107 | public function getShippingState(): string; |
| 96 | 108 | |
| 109 | + /** |
|
| 110 | + * @return void |
|
| 111 | + */ |
|
| 97 | 112 | public function cancelOrder(): void; |
| 98 | 113 | |
| 114 | + /** |
|
| 115 | + * @return void |
|
| 116 | + */ |
|
| 99 | 117 | public function deleteOrder(): void; |
| 100 | 118 | |
| 101 | 119 | public function hasNote(string $note): bool; |
@@ -116,7 +134,13 @@ discard block |
||
| 116 | 134 | |
| 117 | 135 | public function hasInformationAboutNoPayment(): bool; |
| 118 | 136 | |
| 137 | + /** |
|
| 138 | + * @return void |
|
| 139 | + */ |
|
| 119 | 140 | public function resendOrderConfirmationEmail(): void; |
| 120 | 141 | |
| 142 | + /** |
|
| 143 | + * @return void |
|
| 144 | + */ |
|
| 121 | 145 | public function resendShipmentConfirmationEmail(): void; |
| 122 | 146 | } |
@@ -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 | } |
@@ -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; |