@@ -20,6 +20,9 @@ |
||
20 | 20 | { |
21 | 21 | public function getShipment(): ?ShipmentInterface; |
22 | 22 | |
23 | + /** |
|
24 | + * @return void |
|
25 | + */ |
|
23 | 26 | public function setShipment(?ShipmentInterface $shipment): void; |
24 | 27 | |
25 | 28 | public function getShippable(): ?ShippableInterface; |
@@ -17,16 +17,34 @@ |
||
17 | 17 | |
18 | 18 | interface UpdatePageInterface extends BaseUpdatePageInterface |
19 | 19 | { |
20 | + /** |
|
21 | + * @return void |
|
22 | + */ |
|
20 | 23 | public function attachAvatar(string $path): void; |
21 | 24 | |
25 | + /** |
|
26 | + * @return void |
|
27 | + */ |
|
22 | 28 | public function changeUsername(string $username): void; |
23 | 29 | |
30 | + /** |
|
31 | + * @return void |
|
32 | + */ |
|
24 | 33 | public function changeEmail(string $email): void; |
25 | 34 | |
35 | + /** |
|
36 | + * @return void |
|
37 | + */ |
|
26 | 38 | public function changePassword(string $password): void; |
27 | 39 | |
40 | + /** |
|
41 | + * @return void |
|
42 | + */ |
|
28 | 43 | public function changeLocale(string $localeCode): void; |
29 | 44 | |
45 | + /** |
|
46 | + * @return void |
|
47 | + */ |
|
30 | 48 | public function removeAvatar(): void; |
31 | 49 | |
32 | 50 | public function hasAvatar(string $avatarPath): bool; |
@@ -25,14 +25,29 @@ discard block |
||
25 | 25 | |
26 | 26 | public function isSlugReadonlyIn(string $locale): bool; |
27 | 27 | |
28 | + /** |
|
29 | + * @return void |
|
30 | + */ |
|
28 | 31 | public function specifyPrice(string $channelName, string $price): void; |
29 | 32 | |
33 | + /** |
|
34 | + * @return void |
|
35 | + */ |
|
30 | 36 | public function specifyOriginalPrice(string $channelName, string $originalPrice): void; |
31 | 37 | |
38 | + /** |
|
39 | + * @return void |
|
40 | + */ |
|
32 | 41 | public function nameItIn(string $name, string $localeCode): void; |
33 | 42 | |
43 | + /** |
|
44 | + * @return void |
|
45 | + */ |
|
34 | 46 | public function addSelectedAttributes(): void; |
35 | 47 | |
48 | + /** |
|
49 | + * @return void |
|
50 | + */ |
|
36 | 51 | public function removeAttribute(string $attributeName, string $localeCode): void; |
37 | 52 | |
38 | 53 | public function getAttributeValue(string $attributeName, string $localeCode): string; |
@@ -45,48 +60,83 @@ discard block |
||
45 | 60 | |
46 | 61 | public function isMainTaxonChosen(string $taxonName): bool; |
47 | 62 | |
63 | + /** |
|
64 | + * @return void |
|
65 | + */ |
|
48 | 66 | public function selectMainTaxon(TaxonInterface $taxon): void; |
49 | 67 | |
68 | + /** |
|
69 | + * @return void |
|
70 | + */ |
|
50 | 71 | public function disableTracking(): void; |
51 | 72 | |
73 | + /** |
|
74 | + * @return void |
|
75 | + */ |
|
52 | 76 | public function enableTracking(): void; |
53 | 77 | |
54 | 78 | public function isTracked(): bool; |
55 | 79 | |
80 | + /** |
|
81 | + * @return void |
|
82 | + */ |
|
56 | 83 | public function enableSlugModification(string $locale): void; |
57 | 84 | |
58 | 85 | public function isImageWithTypeDisplayed(string $type): bool; |
59 | 86 | |
60 | 87 | /** |
61 | 88 | * @param string $type |
89 | + * @return void |
|
62 | 90 | */ |
63 | 91 | public function attachImage(string $path, string $type = null): void; |
64 | 92 | |
93 | + /** |
|
94 | + * @return void |
|
95 | + */ |
|
65 | 96 | public function changeImageWithType(string $type, string $path): void; |
66 | 97 | |
98 | + /** |
|
99 | + * @return void |
|
100 | + */ |
|
67 | 101 | public function removeImageWithType(string $type): void; |
68 | 102 | |
103 | + /** |
|
104 | + * @return void |
|
105 | + */ |
|
69 | 106 | public function removeFirstImage(): void; |
70 | 107 | |
108 | + /** |
|
109 | + * @return void |
|
110 | + */ |
|
71 | 111 | public function modifyFirstImageType(string $type): void; |
72 | 112 | |
73 | 113 | public function countImages(): int; |
74 | 114 | |
75 | 115 | /** |
76 | 116 | * @param string[] $productsNames |
117 | + * @return void |
|
77 | 118 | */ |
78 | 119 | public function associateProducts(ProductAssociationTypeInterface $productAssociationType, array $productsNames): void; |
79 | 120 | |
80 | 121 | public function hasAssociatedProduct(string $productName, ProductAssociationTypeInterface $productAssociationType): bool; |
81 | 122 | |
123 | + /** |
|
124 | + * @return void |
|
125 | + */ |
|
82 | 126 | public function removeAssociatedProduct(string $productName, ProductAssociationTypeInterface $productAssociationType): void; |
83 | 127 | |
84 | 128 | public function getPricingConfigurationForChannelAndCurrencyCalculator(ChannelInterface $channel, CurrencyInterface $currency): string; |
85 | 129 | |
130 | + /** |
|
131 | + * @return void |
|
132 | + */ |
|
86 | 133 | public function activateLanguageTab(string $locale): void; |
87 | 134 | |
88 | 135 | public function getSlug(string $locale): string; |
89 | 136 | |
137 | + /** |
|
138 | + * @return void |
|
139 | + */ |
|
90 | 140 | public function specifySlugIn(string $slug, string $locale): void; |
91 | 141 | |
92 | 142 | public function getPriceForChannel(string $channelName): string; |
@@ -95,17 +145,32 @@ discard block |
||
95 | 145 | |
96 | 146 | public function isShippingRequired(): bool; |
97 | 147 | |
148 | + /** |
|
149 | + * @return void |
|
150 | + */ |
|
98 | 151 | public function goToVariantsList(): void; |
99 | 152 | |
153 | + /** |
|
154 | + * @return void |
|
155 | + */ |
|
100 | 156 | public function goToVariantCreation(): void; |
101 | 157 | |
158 | + /** |
|
159 | + * @return void |
|
160 | + */ |
|
102 | 161 | public function goToVariantGeneration(): void; |
103 | 162 | |
104 | 163 | public function hasInventoryTab(): bool; |
105 | 164 | |
106 | 165 | public function isShowInShopButtonDisabled(): bool; |
107 | 166 | |
167 | + /** |
|
168 | + * @return void |
|
169 | + */ |
|
108 | 170 | public function showProductInChannel(string $channel): void; |
109 | 171 | |
172 | + /** |
|
173 | + * @return void |
|
174 | + */ |
|
110 | 175 | public function showProductInSingleChannel(): void; |
111 | 176 | } |
@@ -19,8 +19,14 @@ discard block |
||
19 | 19 | |
20 | 20 | interface UpdatePageInterface extends BaseUpdatePageInterface |
21 | 21 | { |
22 | + /** |
|
23 | + * @return void |
|
24 | + */ |
|
22 | 25 | public function disableTracking(): void; |
23 | 26 | |
27 | + /** |
|
28 | + * @return void |
|
29 | + */ |
|
24 | 30 | public function enableTracking(): void; |
25 | 31 | |
26 | 32 | public function isCodeDisabled(): bool; |
@@ -39,15 +45,30 @@ discard block |
||
39 | 45 | |
40 | 46 | public function getNameInLanguage(string $language): string; |
41 | 47 | |
48 | + /** |
|
49 | + * @return void |
|
50 | + */ |
|
42 | 51 | public function selectOption(string $optionName, string $optionValue): void; |
43 | 52 | |
44 | 53 | public function isShowInShopButtonDisabled(): bool; |
45 | 54 | |
55 | + /** |
|
56 | + * @return void |
|
57 | + */ |
|
46 | 58 | public function showProductInChannel(string $channel): void; |
47 | 59 | |
60 | + /** |
|
61 | + * @return void |
|
62 | + */ |
|
48 | 63 | public function showProductInSingleChannel(): void; |
49 | 64 | |
65 | + /** |
|
66 | + * @return void |
|
67 | + */ |
|
50 | 68 | public function specifyCurrentStock(int $amount): void; |
51 | 69 | |
70 | + /** |
|
71 | + * @return void |
|
72 | + */ |
|
52 | 73 | public function specifyPrice(int $price): void; |
53 | 74 | } |
@@ -126,6 +126,7 @@ |
||
126 | 126 | * @Given a customer :customer placed an order :orderNumber |
127 | 127 | * @Given the customer :customer has already placed an order :orderNumber |
128 | 128 | * @Given there is a customer :customer that placed an order :orderNumber in channel :channel |
129 | + * @param string $orderNumber |
|
129 | 130 | */ |
130 | 131 | public function thereIsCustomerThatPlacedOrder(CustomerInterface $customer, $orderNumber = null, $channel = null) |
131 | 132 | { |
@@ -24,19 +24,37 @@ |
||
24 | 24 | |
25 | 25 | public function getColumnFields(string $columnName): array; |
26 | 26 | |
27 | + /** |
|
28 | + * @return void |
|
29 | + */ |
|
27 | 30 | public function sortBy(string $fieldName): void; |
28 | 31 | |
32 | + /** |
|
33 | + * @return void |
|
34 | + */ |
|
29 | 35 | public function deleteResourceOnPage(array $parameters): void; |
30 | 36 | |
31 | 37 | public function getActionsForResource(array $parameters): NodeElement; |
32 | 38 | |
39 | + /** |
|
40 | + * @return void |
|
41 | + */ |
|
33 | 42 | public function checkResourceOnPage(array $parameters): void; |
34 | 43 | |
35 | 44 | public function countItems(): int; |
36 | 45 | |
46 | + /** |
|
47 | + * @return void |
|
48 | + */ |
|
37 | 49 | public function filter(): void; |
38 | 50 | |
51 | + /** |
|
52 | + * @return void |
|
53 | + */ |
|
39 | 54 | public function bulkDelete(): void; |
40 | 55 | |
56 | + /** |
|
57 | + * @return void |
|
58 | + */ |
|
41 | 59 | public function sort(string $order): void; |
42 | 60 | } |
@@ -24,35 +24,64 @@ discard block |
||
24 | 24 | |
25 | 25 | public const FEMALE_GENDER = 'f'; |
26 | 26 | |
27 | + /** |
|
28 | + * @return string|null |
|
29 | + */ |
|
27 | 30 | public function getEmail(): ?string; |
28 | 31 | |
32 | + /** |
|
33 | + * @return void |
|
34 | + */ |
|
29 | 35 | public function setEmail(?string $email): void; |
30 | 36 | |
31 | 37 | /** |
32 | 38 | * Gets normalized email (should be used in search and sort queries). |
39 | + * @return string|null |
|
33 | 40 | */ |
34 | 41 | public function getEmailCanonical(): ?string; |
35 | 42 | |
43 | + /** |
|
44 | + * @return void |
|
45 | + */ |
|
36 | 46 | public function setEmailCanonical(?string $emailCanonical): void; |
37 | 47 | |
38 | 48 | public function getFullName(): string; |
39 | 49 | |
50 | + /** |
|
51 | + * @return string|null |
|
52 | + */ |
|
40 | 53 | public function getFirstName(): ?string; |
41 | 54 | |
55 | + /** |
|
56 | + * @return void |
|
57 | + */ |
|
42 | 58 | public function setFirstName(?string $firstName): void; |
43 | 59 | |
60 | + /** |
|
61 | + * @return string|null |
|
62 | + */ |
|
44 | 63 | public function getLastName(): ?string; |
45 | 64 | |
65 | + /** |
|
66 | + * @return void |
|
67 | + */ |
|
46 | 68 | public function setLastName(?string $lastName): void; |
47 | 69 | |
70 | + /** |
|
71 | + * @return \DateTimeInterface|null |
|
72 | + */ |
|
48 | 73 | public function getBirthday(): ?\DateTimeInterface; |
49 | 74 | |
75 | + /** |
|
76 | + * @return void |
|
77 | + */ |
|
50 | 78 | public function setBirthday(?\DateTimeInterface $birthday): void; |
51 | 79 | |
52 | 80 | public function getGender(): string; |
53 | 81 | |
54 | 82 | /** |
55 | 83 | * You should use interface constants for that. |
84 | + * @return void |
|
56 | 85 | */ |
57 | 86 | public function setGender(string $gender): void; |
58 | 87 | |
@@ -60,15 +89,30 @@ discard block |
||
60 | 89 | |
61 | 90 | public function isFemale(): bool; |
62 | 91 | |
92 | + /** |
|
93 | + * @return CustomerGroupInterface|null |
|
94 | + */ |
|
63 | 95 | public function getGroup(): ?CustomerGroupInterface; |
64 | 96 | |
97 | + /** |
|
98 | + * @return void |
|
99 | + */ |
|
65 | 100 | public function setGroup(?CustomerGroupInterface $group): void; |
66 | 101 | |
102 | + /** |
|
103 | + * @return string|null |
|
104 | + */ |
|
67 | 105 | public function getPhoneNumber(): ?string; |
68 | 106 | |
107 | + /** |
|
108 | + * @return void |
|
109 | + */ |
|
69 | 110 | public function setPhoneNumber(?string $phoneNumber): void; |
70 | 111 | |
71 | 112 | public function isSubscribedToNewsletter(): bool; |
72 | 113 | |
114 | + /** |
|
115 | + * @return void |
|
116 | + */ |
|
73 | 117 | public function setSubscribedToNewsletter(bool $subscribedToNewsletter): void; |
74 | 118 | } |
@@ -17,15 +17,27 @@ |
||
17 | 17 | |
18 | 18 | interface IndexPageInterface extends BaseIndexPageInterface |
19 | 19 | { |
20 | + /** |
|
21 | + * @return void |
|
22 | + */ |
|
20 | 23 | public function chooseStateToFilter(string $paymentState): void; |
21 | 24 | |
25 | + /** |
|
26 | + * @return void |
|
27 | + */ |
|
22 | 28 | public function completePaymentOfOrderWithNumber(string $orderNumber): void; |
23 | 29 | |
24 | 30 | public function getPaymentStateByOrderNumber(string $orderNumber): string; |
25 | 31 | |
26 | 32 | public function isPaymentWithOrderNumberInPosition(string $orderNumber, int $position): bool; |
27 | 33 | |
34 | + /** |
|
35 | + * @return void |
|
36 | + */ |
|
28 | 37 | public function showOrderPageForNthPayment(int $position): void; |
29 | 38 | |
39 | + /** |
|
40 | + * @return void |
|
41 | + */ |
|
30 | 42 | public function chooseChannelFilter(string $channelName): void; |
31 | 43 | } |
@@ -24,11 +24,23 @@ |
||
24 | 24 | |
25 | 25 | public function isShowInShopButtonDisabled(): bool; |
26 | 26 | |
27 | + /** |
|
28 | + * @return void |
|
29 | + */ |
|
27 | 30 | public function showProductInChannel(string $channel): void; |
28 | 31 | |
32 | + /** |
|
33 | + * @return void |
|
34 | + */ |
|
29 | 35 | public function showProductInSingleChannel(): void; |
30 | 36 | |
37 | + /** |
|
38 | + * @return void |
|
39 | + */ |
|
31 | 40 | public function showProductEditPage(): void; |
32 | 41 | |
42 | + /** |
|
43 | + * @return void |
|
44 | + */ |
|
33 | 45 | public function showVariantEditPage(ProductVariantInterface $variant): void; |
34 | 46 | } |