Completed
Push — bump-requirements ( 20feef...bd39d6 )
by Kamil
26:11
created
src/Sylius/Component/Core/Model/PromotionCouponInterface.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -17,11 +17,20 @@
 block discarded – undo
17 17
 
18 18
 interface PromotionCouponInterface extends BasePromotionCouponInterface
19 19
 {
20
+    /**
21
+     * @return integer|null
22
+     */
20 23
     public function getPerCustomerUsageLimit(): ?int;
21 24
 
25
+    /**
26
+     * @return void
27
+     */
22 28
     public function setPerCustomerUsageLimit(?int $perCustomerUsageLimit): void;
23 29
 
24 30
     public function isReusableFromCancelledOrders(): bool;
25 31
 
32
+    /**
33
+     * @return void
34
+     */
26 35
     public function setReusableFromCancelledOrders(bool $reusableFromCancelledOrders): void;
27 36
 }
Please login to merge, or discard this patch.
src/Sylius/Behat/Client/ApiClientInterface.php 1 patch
Doc Comments   +22 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,27 +44,48 @@
 block discarded – undo
44 44
 
45 45
     public function upload(): Response;
46 46
 
47
+    /**
48
+     * @return void
49
+     */
47 50
     public function buildCreateRequest(): void;
48 51
 
52
+    /**
53
+     * @return void
54
+     */
49 55
     public function buildUpdateRequest(string $id): void;
50 56
 
57
+    /**
58
+     * @return void
59
+     */
51 60
     public function buildUploadRequest(): void;
52 61
 
53
-    /** @param string|int $value */
62
+    /** @param string $value */
54 63
     public function addParameter(string $key, $value): void;
55 64
 
56 65
     /** @param string|int $value */
57 66
     public function addFilter(string $key, $value): void;
58 67
 
68
+    /**
69
+     * @return void
70
+     */
59 71
     public function addFile(string $key, UploadedFile $file): void;
60 72
 
61 73
     /** @param string|int|array $value */
62 74
     public function addRequestData(string $key, $value): void;
63 75
 
76
+    /**
77
+     * @return void
78
+     */
64 79
     public function addSubResourceData(string $key, array $data): void;
65 80
 
81
+    /**
82
+     * @return void
83
+     */
66 84
     public function removeSubResource(string $subResource, string $id): void;
67 85
 
86
+    /**
87
+     * @return void
88
+     */
68 89
     public function updateRequestData(array $data): void;
69 90
 
70 91
     public function getLastResponse(): Response;
Please login to merge, or discard this patch.
src/Sylius/Bundle/ApiBundle/Context/UserContextInterface.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -17,5 +17,8 @@
 block discarded – undo
17 17
 
18 18
 interface UserContextInterface
19 19
 {
20
+    /**
21
+     * @return null|UserInterface
22
+     */
20 23
     public function getUser(): ?UserInterface;
21 24
 }
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/Fixture/Factory/PromotionExampleFactory.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -164,6 +164,9 @@
 block discarded – undo
164 164
         ;
165 165
     }
166 166
 
167
+    /**
168
+     * @param FactoryInterface|null $couponFactory
169
+     */
167 170
     private static function getCouponNormalizer(?FactoryInterface $couponFactory): \Closure
168 171
     {
169 172
         return function (Options $options, array $couponDefinitions) use ($couponFactory): array {
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Admin/Product/IndexPageInterface.php 1 patch
Doc Comments   +12 added lines patch added patch discarded remove patch
@@ -18,13 +18,25 @@
 block discarded – undo
18 18
 
19 19
 interface IndexPageInterface extends CrudIndexPageInterface
20 20
 {
21
+    /**
22
+     * @return void
23
+     */
21 24
     public function filterByTaxon(string $taxonName): void;
22 25
 
23 26
     public function hasProductAccessibleImage(string $productCode): bool;
24 27
 
28
+    /**
29
+     * @return void
30
+     */
25 31
     public function showProductPage(string $productName): void;
26 32
 
33
+    /**
34
+     * @return void
35
+     */
27 36
     public function chooseChannelFilter(string $channelName) :void;
28 37
 
38
+    /**
39
+     * @return void
40
+     */
29 41
     public function filter(): void;
30 42
 }
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Admin/Product/UpdateSimpleProductPageInterface.php 1 patch
Doc Comments   +71 added lines patch added patch discarded remove patch
@@ -25,14 +25,29 @@  discard block
 block discarded – undo
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
 block discarded – undo
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,23 +145,44 @@  discard block
 block discarded – undo
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
 
177
+    /**
178
+     * @return void
179
+     */
112 180
     public function disable(): void;
113 181
 
114 182
     public function isEnabled(): bool;
115 183
 
184
+    /**
185
+     * @return void
186
+     */
116 187
     public function enable(): void;
117 188
 }
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Admin/ProductVariant/UpdatePageInterface.php 1 patch
Doc Comments   +27 added lines patch added patch discarded remove patch
@@ -19,8 +19,14 @@  discard block
 block discarded – undo
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,21 +45,42 @@  discard block
 block discarded – undo
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
 
75
+    /**
76
+     * @return void
77
+     */
54 78
     public function disable(): void;
55 79
 
56 80
     public function isEnabled(): bool;
57 81
 
82
+    /**
83
+     * @return void
84
+     */
58 85
     public function enable(): void;
59 86
 }
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Shop/Product/ShowPageInterface.php 1 patch
Doc Comments   +16 added lines patch added patch discarded remove patch
@@ -22,24 +22,31 @@  discard block
 block discarded – undo
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;
@@ -72,10 +79,19 @@  discard block
 block discarded – undo
72 79
 
73 80
     public function countReviews(): int;
74 81
 
82
+    /**
83
+     * @return void
84
+     */
75 85
     public function selectOption(string $optionCode, string $optionValue): void;
76 86
 
87
+    /**
88
+     * @return void
89
+     */
77 90
     public function selectVariant(string $variantName): void;
78 91
 
92
+    /**
93
+     * @return void
94
+     */
79 95
     public function visit(string $url): void;
80 96
 
81 97
     public function getVariantsNames(): array;
Please login to merge, or discard this patch.
src/Sylius/Component/Product/Model/ProductVariantInterface.php 1 patch
Doc Comments   +27 added lines patch added patch discarded remove patch
@@ -28,8 +28,14 @@  discard block
 block discarded – undo
28 28
     ToggleableInterface,
29 29
     TranslatableInterface
30 30
 {
31
+    /**
32
+     * @return string
33
+     */
31 34
     public function getName(): ?string;
32 35
 
36
+    /**
37
+     * @return void
38
+     */
33 39
     public function setName(?string $name): void;
34 40
 
35 41
     public function getDescriptor(): string;
@@ -41,21 +47,42 @@  discard block
 block discarded – undo
41 47
      */
42 48
     public function getOptionValues(): Collection;
43 49
 
50
+    /**
51
+     * @return void
52
+     */
44 53
     public function addOptionValue(ProductOptionValueInterface $optionValue): void;
45 54
 
55
+    /**
56
+     * @return void
57
+     */
46 58
     public function removeOptionValue(ProductOptionValueInterface $optionValue): void;
47 59
 
48 60
     public function hasOptionValue(ProductOptionValueInterface $optionValue): bool;
49 61
 
62
+    /**
63
+     * @return ProductInterface
64
+     */
50 65
     public function getProduct(): ?ProductInterface;
51 66
 
67
+    /**
68
+     * @return void
69
+     */
52 70
     public function setProduct(?ProductInterface $product): void;
53 71
 
72
+    /**
73
+     * @return integer
74
+     */
54 75
     public function getPosition(): ?int;
55 76
 
77
+    /**
78
+     * @param integer $position
79
+     *
80
+     * @return void
81
+     */
56 82
     public function setPosition(?int $position): void;
57 83
 
58 84
     /**
85
+     * @param string $locale
59 86
      * @return ProductVariantTranslationInterface
60 87
      */
61 88
     public function getTranslation(?string $locale = null): TranslationInterface;
Please login to merge, or discard this patch.