@@ -18,48 +18,93 @@ |
||
| 18 | 18 | |
| 19 | 19 | interface AddressPageInterface extends SymfonyPageInterface |
| 20 | 20 | { |
| 21 | + /** |
|
| 22 | + * @return void |
|
| 23 | + */ |
|
| 21 | 24 | public function chooseDifferentBillingAddress(): void; |
| 22 | 25 | |
| 23 | 26 | public function checkInvalidCredentialsValidation(): bool; |
| 24 | 27 | |
| 25 | 28 | public function checkValidationMessageFor(string $element, string $message): bool; |
| 26 | 29 | |
| 30 | + /** |
|
| 31 | + * @return void |
|
| 32 | + */ |
|
| 27 | 33 | public function specifyShippingAddress(AddressInterface $shippingAddress): void; |
| 28 | 34 | |
| 35 | + /** |
|
| 36 | + * @return void |
|
| 37 | + */ |
|
| 29 | 38 | public function selectShippingAddressProvince(string $province): void; |
| 30 | 39 | |
| 40 | + /** |
|
| 41 | + * @return void |
|
| 42 | + */ |
|
| 31 | 43 | public function specifyBillingAddress(AddressInterface $billingAddress): void; |
| 32 | 44 | |
| 45 | + /** |
|
| 46 | + * @return void |
|
| 47 | + */ |
|
| 33 | 48 | public function selectBillingAddressProvince(string $province): void; |
| 34 | 49 | |
| 50 | + /** |
|
| 51 | + * @return void |
|
| 52 | + */ |
|
| 35 | 53 | public function specifyEmail(?string $email): void; |
| 36 | 54 | |
| 55 | + /** |
|
| 56 | + * @return void |
|
| 57 | + */ |
|
| 37 | 58 | public function specifyShippingAddressFullName(string $fullName): void; |
| 38 | 59 | |
| 39 | 60 | public function canSignIn(): bool; |
| 40 | 61 | |
| 62 | + /** |
|
| 63 | + * @return void |
|
| 64 | + */ |
|
| 41 | 65 | public function signIn(): void; |
| 42 | 66 | |
| 67 | + /** |
|
| 68 | + * @return void |
|
| 69 | + */ |
|
| 43 | 70 | public function specifyPassword(string $password): void; |
| 44 | 71 | |
| 45 | 72 | public function getItemSubtotal(string $itemName): string; |
| 46 | 73 | |
| 47 | 74 | public function getShippingAddressCountry(): string; |
| 48 | 75 | |
| 76 | + /** |
|
| 77 | + * @return void |
|
| 78 | + */ |
|
| 49 | 79 | public function nextStep(): void; |
| 50 | 80 | |
| 81 | + /** |
|
| 82 | + * @return void |
|
| 83 | + */ |
|
| 51 | 84 | public function backToStore(): void; |
| 52 | 85 | |
| 86 | + /** |
|
| 87 | + * @return void |
|
| 88 | + */ |
|
| 53 | 89 | public function specifyBillingAddressProvince(string $provinceName): void; |
| 54 | 90 | |
| 91 | + /** |
|
| 92 | + * @return void |
|
| 93 | + */ |
|
| 55 | 94 | public function specifyShippingAddressProvince(string $provinceName): void; |
| 56 | 95 | |
| 57 | 96 | public function hasShippingAddressInput(): bool; |
| 58 | 97 | |
| 59 | 98 | public function hasBillingAddressInput(): bool; |
| 60 | 99 | |
| 100 | + /** |
|
| 101 | + * @return void |
|
| 102 | + */ |
|
| 61 | 103 | public function selectShippingAddressFromAddressBook(AddressInterface $address): void; |
| 62 | 104 | |
| 105 | + /** |
|
| 106 | + * @return void |
|
| 107 | + */ |
|
| 63 | 108 | public function selectBillingAddressFromAddressBook(AddressInterface $address): void; |
| 64 | 109 | |
| 65 | 110 | public function getPreFilledShippingAddress(): AddressInterface; |
@@ -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 | } |
@@ -139,7 +139,7 @@ discard block |
||
| 139 | 139 | |
| 140 | 140 | public function hasAssociation(string $productAssociationName): bool |
| 141 | 141 | { |
| 142 | - try{ |
|
| 142 | + try { |
|
| 143 | 143 | $this->getElement('association', ['%associationName%' => $productAssociationName]); |
| 144 | 144 | } catch (ElementNotFoundException $e) { |
| 145 | 145 | return false; |
@@ -170,7 +170,7 @@ discard block |
||
| 170 | 170 | |
| 171 | 171 | public function hasReviewTitled(string $title): bool |
| 172 | 172 | { |
| 173 | - try{ |
|
| 173 | + try { |
|
| 174 | 174 | $element = $this->getElement('reviews_comment', ['%title%' => $title]); |
| 175 | 175 | } catch (ElementNotFoundException $e) { |
| 176 | 176 | return false; |
@@ -186,7 +186,7 @@ discard block |
||
| 186 | 186 | |
| 187 | 187 | public function isMainImageDisplayed(): bool |
| 188 | 188 | { |
| 189 | - if ( !$this->hasElement('main_image')) { |
|
| 189 | + if (!$this->hasElement('main_image')) { |
|
| 190 | 190 | return false; |
| 191 | 191 | } |
| 192 | 192 | |
@@ -139,7 +139,7 @@ discard block |
||
| 139 | 139 | |
| 140 | 140 | public function hasAssociation(string $productAssociationName): bool |
| 141 | 141 | { |
| 142 | - try{ |
|
| 142 | + try { |
|
| 143 | 143 | $this->getElement('association', ['%associationName%' => $productAssociationName]); |
| 144 | 144 | } catch (ElementNotFoundException $e) { |
| 145 | 145 | return false; |
@@ -170,7 +170,7 @@ discard block |
||
| 170 | 170 | |
| 171 | 171 | public function hasReviewTitled(string $title): bool |
| 172 | 172 | { |
| 173 | - try{ |
|
| 173 | + try { |
|
| 174 | 174 | $element = $this->getElement('reviews_comment', ['%title%' => $title]); |
| 175 | 175 | } catch (ElementNotFoundException $e) { |
| 176 | 176 | return false; |
@@ -64,7 +64,7 @@ |
||
| 64 | 64 | |
| 65 | 65 | public function isProductOnList(string $productName): bool |
| 66 | 66 | { |
| 67 | - try{ |
|
| 67 | + try { |
|
| 68 | 68 | $this->getElement('product_name', ['%productName%' => $productName]); |
| 69 | 69 | } catch (ElementNotFoundException $e) { |
| 70 | 70 | return false; |
@@ -64,7 +64,7 @@ |
||
| 64 | 64 | |
| 65 | 65 | public function isProductOnList(string $productName): bool |
| 66 | 66 | { |
| 67 | - try{ |
|
| 67 | + try { |
|
| 68 | 68 | $this->getElement('product_name', ['%productName%' => $productName]); |
| 69 | 69 | } catch (ElementNotFoundException $e) { |
| 70 | 70 | return false; |
@@ -63,6 +63,6 @@ |
||
| 63 | 63 | $this->plugins->add(new PluginInfo('<info>Customer Reorder</info>', 'Convenient reordering for the customers from the `My account` section.', 'https://github.com/Sylius/CustomerReorderPlugin')); |
| 64 | 64 | $this->plugins->add(new PluginInfo('<info>Invoicing</info>', 'Automatised, basic invoicing system for orders.', 'https://github.com/Sylius/InvoicingPlugin')); |
| 65 | 65 | $this->plugins->add(new PluginInfo('<info>Refund</info>', 'Full and partial refunds of items and/or shipping costs including Credit Memos.', 'https://github.com/Sylius/RefundPlugin')); |
| 66 | - $this->plugins->add(new PluginInfo('<info>CMS</info>', 'This plugin allows you to add dynamic blocks with images, text or HTML to your storefront as well as pages and FAQs section.','https://github.com/BitBagCommerce/SyliusCmsPlugin' )); |
|
| 66 | + $this->plugins->add(new PluginInfo('<info>CMS</info>', 'This plugin allows you to add dynamic blocks with images, text or HTML to your storefront as well as pages and FAQs section.', 'https://github.com/BitBagCommerce/SyliusCmsPlugin')); |
|
| 67 | 67 | } |
| 68 | 68 | } |
@@ -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; |