@@ -25,6 +25,7 @@ |
||
25 | 25 | * @param OrderInterface $order |
26 | 26 | * @param PromotionInterface $promotion |
27 | 27 | * @param array|int[] $adjustmentsAmounts |
28 | + * @return void |
|
28 | 29 | */ |
29 | 30 | public function apply(OrderInterface $order, PromotionInterface $promotion, array $adjustmentsAmounts): void; |
30 | 31 | } |
@@ -22,11 +22,13 @@ |
||
22 | 22 | { |
23 | 23 | /** |
24 | 24 | * @param OrderInterface $order |
25 | + * @return void |
|
25 | 26 | */ |
26 | 27 | public function increment(OrderInterface $order): void; |
27 | 28 | |
28 | 29 | /** |
29 | 30 | * @param OrderInterface $order |
31 | + * @return void |
|
30 | 32 | */ |
31 | 33 | public function decrement(OrderInterface $order): void; |
32 | 34 | } |
@@ -34,6 +34,7 @@ |
||
34 | 34 | * @param PromotionSubjectInterface $subject |
35 | 35 | * @param array $configuration |
36 | 36 | * @param PromotionInterface $promotion |
37 | + * @return void |
|
37 | 38 | */ |
38 | 39 | public function revert(PromotionSubjectInterface $subject, array $configuration, PromotionInterface $promotion): void; |
39 | 40 | } |
@@ -24,12 +24,14 @@ |
||
24 | 24 | /** |
25 | 25 | * @param PromotionSubjectInterface $subject |
26 | 26 | * @param PromotionInterface $promotion |
27 | + * @return void |
|
27 | 28 | */ |
28 | 29 | public function apply(PromotionSubjectInterface $subject, PromotionInterface $promotion): void; |
29 | 30 | |
30 | 31 | /** |
31 | 32 | * @param PromotionSubjectInterface $subject |
32 | 33 | * @param PromotionInterface $promotion |
34 | + * @return void |
|
33 | 35 | */ |
34 | 36 | public function revert(PromotionSubjectInterface $subject, PromotionInterface $promotion): void; |
35 | 37 | } |
@@ -25,6 +25,7 @@ discard block |
||
25 | 25 | |
26 | 26 | /** |
27 | 27 | * @param int|null $amount |
28 | + * @return void |
|
28 | 29 | */ |
29 | 30 | public function setAmount(?int $amount): void; |
30 | 31 | |
@@ -35,6 +36,7 @@ discard block |
||
35 | 36 | |
36 | 37 | /** |
37 | 38 | * @param int|null $codeLength |
39 | + * @return void |
|
38 | 40 | */ |
39 | 41 | public function setCodeLength(?int $codeLength): void; |
40 | 42 | |
@@ -45,6 +47,7 @@ discard block |
||
45 | 47 | |
46 | 48 | /** |
47 | 49 | * @param \DateTimeInterface $expiresAt |
50 | + * @return void |
|
48 | 51 | */ |
49 | 52 | public function setExpiresAt(\DateTimeInterface $expiresAt): void; |
50 | 53 | |
@@ -55,6 +58,7 @@ discard block |
||
55 | 58 | |
56 | 59 | /** |
57 | 60 | * @param int $usageLimit |
61 | + * @return void |
|
58 | 62 | */ |
59 | 63 | public function setUsageLimit(int $usageLimit): void; |
60 | 64 | } |
@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | * file that was distributed with this source code. |
10 | 10 | */ |
11 | 11 | |
12 | -declare(strict_types=1); |
|
12 | +declare(strict_types = 1); |
|
13 | 13 | |
14 | 14 | namespace Sylius\Component\Promotion\Generator; |
15 | 15 | |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | /** |
27 | 27 | * @param int|null $amount |
28 | 28 | */ |
29 | - public function setAmount(?int $amount): void; |
|
29 | + public function setAmount(?int $amount) : void; |
|
30 | 30 | |
31 | 31 | /** |
32 | 32 | * @return int|null |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | /** |
37 | 37 | * @param int|null $codeLength |
38 | 38 | */ |
39 | - public function setCodeLength(?int $codeLength): void; |
|
39 | + public function setCodeLength(?int $codeLength) : void; |
|
40 | 40 | |
41 | 41 | /** |
42 | 42 | * @return \DateTimeInterface|null |
@@ -22,16 +22,19 @@ |
||
22 | 22 | { |
23 | 23 | /** |
24 | 24 | * @param string|null $type |
25 | + * @return void |
|
25 | 26 | */ |
26 | 27 | public function setType(?string $type): void; |
27 | 28 | |
28 | 29 | /** |
29 | 30 | * @param array $configuration |
31 | + * @return void |
|
30 | 32 | */ |
31 | 33 | public function setConfiguration(array $configuration): void; |
32 | 34 | |
33 | 35 | /** |
34 | 36 | * @param PromotionInterface|null $promotion |
37 | + * @return void |
|
35 | 38 | */ |
36 | 39 | public function setPromotion(?PromotionInterface $promotion): void; |
37 | 40 | } |
@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | * file that was distributed with this source code. |
10 | 10 | */ |
11 | 11 | |
12 | -declare(strict_types=1); |
|
12 | +declare(strict_types = 1); |
|
13 | 13 | |
14 | 14 | namespace Sylius\Component\Promotion\Model; |
15 | 15 | |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | /** |
24 | 24 | * @param string|null $type |
25 | 25 | */ |
26 | - public function setType(?string $type): void; |
|
26 | + public function setType(?string $type) : void; |
|
27 | 27 | |
28 | 28 | /** |
29 | 29 | * @param array $configuration |
@@ -33,5 +33,5 @@ discard block |
||
33 | 33 | /** |
34 | 34 | * @param PromotionInterface|null $promotion |
35 | 35 | */ |
36 | - public function setPromotion(?PromotionInterface $promotion): void; |
|
36 | + public function setPromotion(?PromotionInterface $promotion) : void; |
|
37 | 37 | } |
@@ -29,6 +29,7 @@ discard block |
||
29 | 29 | |
30 | 30 | /** |
31 | 31 | * @param int|null $usageLimit |
32 | + * @return void |
|
32 | 33 | */ |
33 | 34 | public function setUsageLimit(?int $usageLimit): void; |
34 | 35 | |
@@ -39,11 +40,18 @@ discard block |
||
39 | 40 | |
40 | 41 | /** |
41 | 42 | * @param int $used |
43 | + * @return void |
|
42 | 44 | */ |
43 | 45 | public function setUsed(int $used): void; |
44 | 46 | |
47 | + /** |
|
48 | + * @return void |
|
49 | + */ |
|
45 | 50 | public function incrementUsed(): void; |
46 | 51 | |
52 | + /** |
|
53 | + * @return void |
|
54 | + */ |
|
47 | 55 | public function decrementUsed(): void; |
48 | 56 | |
49 | 57 | /** |
@@ -53,6 +61,7 @@ discard block |
||
53 | 61 | |
54 | 62 | /** |
55 | 63 | * @param PromotionInterface|null $promotion |
64 | + * @return void |
|
56 | 65 | */ |
57 | 66 | public function setPromotion(?PromotionInterface $promotion): void; |
58 | 67 | |
@@ -63,6 +72,7 @@ discard block |
||
63 | 72 | |
64 | 73 | /** |
65 | 74 | * @param \DateTimeInterface $expiresAt |
75 | + * @return void |
|
66 | 76 | */ |
67 | 77 | public function setExpiresAt(?\DateTimeInterface $expiresAt): void; |
68 | 78 |
@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | * file that was distributed with this source code. |
10 | 10 | */ |
11 | 11 | |
12 | -declare(strict_types=1); |
|
12 | +declare(strict_types = 1); |
|
13 | 13 | |
14 | 14 | namespace Sylius\Component\Promotion\Model; |
15 | 15 | |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | /** |
31 | 31 | * @param int|null $usageLimit |
32 | 32 | */ |
33 | - public function setUsageLimit(?int $usageLimit): void; |
|
33 | + public function setUsageLimit(?int $usageLimit) : void; |
|
34 | 34 | |
35 | 35 | /** |
36 | 36 | * @return int |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | /** |
55 | 55 | * @param PromotionInterface|null $promotion |
56 | 56 | */ |
57 | - public function setPromotion(?PromotionInterface $promotion): void; |
|
57 | + public function setPromotion(?PromotionInterface $promotion) : void; |
|
58 | 58 | |
59 | 59 | /** |
60 | 60 | * @return \DateTimeInterface|null |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | /** |
65 | 65 | * @param \DateTimeInterface $expiresAt |
66 | 66 | */ |
67 | - public function setExpiresAt(?\DateTimeInterface $expiresAt): void; |
|
67 | + public function setExpiresAt(?\DateTimeInterface $expiresAt) : void; |
|
68 | 68 | |
69 | 69 | /** |
70 | 70 | * @return bool |
@@ -30,6 +30,7 @@ discard block |
||
30 | 30 | |
31 | 31 | /** |
32 | 32 | * @param string|null $name |
33 | + * @return void |
|
33 | 34 | */ |
34 | 35 | public function setName(?string $name): void; |
35 | 36 | |
@@ -40,6 +41,7 @@ discard block |
||
40 | 41 | |
41 | 42 | /** |
42 | 43 | * @param string|null $description |
44 | + * @return void |
|
43 | 45 | */ |
44 | 46 | public function setDescription(?string $description): void; |
45 | 47 | |
@@ -50,6 +52,7 @@ discard block |
||
50 | 52 | |
51 | 53 | /** |
52 | 54 | * @param int|null $priority |
55 | + * @return void |
|
53 | 56 | */ |
54 | 57 | public function setPriority(?int $priority): void; |
55 | 58 | |
@@ -60,6 +63,7 @@ discard block |
||
60 | 63 | |
61 | 64 | /** |
62 | 65 | * @param bool|null $exclusive |
66 | + * @return void |
|
63 | 67 | */ |
64 | 68 | public function setExclusive(?bool $exclusive): void; |
65 | 69 | |
@@ -70,6 +74,7 @@ discard block |
||
70 | 74 | |
71 | 75 | /** |
72 | 76 | * @param int|null $usageLimit |
77 | + * @return void |
|
73 | 78 | */ |
74 | 79 | public function setUsageLimit(?int $usageLimit): void; |
75 | 80 | |
@@ -80,11 +85,18 @@ discard block |
||
80 | 85 | |
81 | 86 | /** |
82 | 87 | * @param int $used |
88 | + * @return void |
|
83 | 89 | */ |
84 | 90 | public function setUsed(int $used): void; |
85 | 91 | |
92 | + /** |
|
93 | + * @return void |
|
94 | + */ |
|
86 | 95 | public function incrementUsed(): void; |
87 | 96 | |
97 | + /** |
|
98 | + * @return void |
|
99 | + */ |
|
88 | 100 | public function decrementUsed(): void; |
89 | 101 | |
90 | 102 | /** |
@@ -94,6 +106,7 @@ discard block |
||
94 | 106 | |
95 | 107 | /** |
96 | 108 | * @param \DateTimeInterface|null $startsAt |
109 | + * @return void |
|
97 | 110 | */ |
98 | 111 | public function setStartsAt(?\DateTimeInterface $startsAt): void; |
99 | 112 | |
@@ -104,6 +117,7 @@ discard block |
||
104 | 117 | |
105 | 118 | /** |
106 | 119 | * @param \DateTimeInterface|null $endsAt |
120 | + * @return void |
|
107 | 121 | */ |
108 | 122 | public function setEndsAt(?\DateTimeInterface $endsAt): void; |
109 | 123 | |
@@ -114,6 +128,7 @@ discard block |
||
114 | 128 | |
115 | 129 | /** |
116 | 130 | * @param bool|null $couponBased |
131 | + * @return void |
|
117 | 132 | */ |
118 | 133 | public function setCouponBased(?bool $couponBased): void; |
119 | 134 | |
@@ -136,11 +151,13 @@ discard block |
||
136 | 151 | |
137 | 152 | /** |
138 | 153 | * @param PromotionCouponInterface $coupon |
154 | + * @return void |
|
139 | 155 | */ |
140 | 156 | public function addCoupon(PromotionCouponInterface $coupon): void; |
141 | 157 | |
142 | 158 | /** |
143 | 159 | * @param PromotionCouponInterface $coupon |
160 | + * @return void |
|
144 | 161 | */ |
145 | 162 | public function removeCoupon(PromotionCouponInterface $coupon): void; |
146 | 163 | |
@@ -163,11 +180,13 @@ discard block |
||
163 | 180 | |
164 | 181 | /** |
165 | 182 | * @param PromotionRuleInterface $rule |
183 | + * @return void |
|
166 | 184 | */ |
167 | 185 | public function addRule(PromotionRuleInterface $rule): void; |
168 | 186 | |
169 | 187 | /** |
170 | 188 | * @param PromotionRuleInterface $rule |
189 | + * @return void |
|
171 | 190 | */ |
172 | 191 | public function removeRule(PromotionRuleInterface $rule): void; |
173 | 192 | |
@@ -190,11 +209,13 @@ discard block |
||
190 | 209 | |
191 | 210 | /** |
192 | 211 | * @param PromotionActionInterface $action |
212 | + * @return void |
|
193 | 213 | */ |
194 | 214 | public function addAction(PromotionActionInterface $action): void; |
195 | 215 | |
196 | 216 | /** |
197 | 217 | * @param PromotionActionInterface $action |
218 | + * @return void |
|
198 | 219 | */ |
199 | 220 | public function removeAction(PromotionActionInterface $action): void; |
200 | 221 | } |
@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | * file that was distributed with this source code. |
10 | 10 | */ |
11 | 11 | |
12 | -declare(strict_types=1); |
|
12 | +declare(strict_types = 1); |
|
13 | 13 | |
14 | 14 | namespace Sylius\Component\Promotion\Model; |
15 | 15 | |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | /** |
32 | 32 | * @param string|null $name |
33 | 33 | */ |
34 | - public function setName(?string $name): void; |
|
34 | + public function setName(?string $name) : void; |
|
35 | 35 | |
36 | 36 | /** |
37 | 37 | * @return string|null |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | /** |
42 | 42 | * @param string|null $description |
43 | 43 | */ |
44 | - public function setDescription(?string $description): void; |
|
44 | + public function setDescription(?string $description) : void; |
|
45 | 45 | |
46 | 46 | /** |
47 | 47 | * @return int |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | /** |
52 | 52 | * @param int|null $priority |
53 | 53 | */ |
54 | - public function setPriority(?int $priority): void; |
|
54 | + public function setPriority(?int $priority) : void; |
|
55 | 55 | |
56 | 56 | /** |
57 | 57 | * @return bool |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | /** |
62 | 62 | * @param bool|null $exclusive |
63 | 63 | */ |
64 | - public function setExclusive(?bool $exclusive): void; |
|
64 | + public function setExclusive(?bool $exclusive) : void; |
|
65 | 65 | |
66 | 66 | /** |
67 | 67 | * @return int|null |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | /** |
72 | 72 | * @param int|null $usageLimit |
73 | 73 | */ |
74 | - public function setUsageLimit(?int $usageLimit): void; |
|
74 | + public function setUsageLimit(?int $usageLimit) : void; |
|
75 | 75 | |
76 | 76 | /** |
77 | 77 | * @return int |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | /** |
96 | 96 | * @param \DateTimeInterface|null $startsAt |
97 | 97 | */ |
98 | - public function setStartsAt(?\DateTimeInterface $startsAt): void; |
|
98 | + public function setStartsAt(?\DateTimeInterface $startsAt) : void; |
|
99 | 99 | |
100 | 100 | /** |
101 | 101 | * @return \DateTimeInterface|null |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | /** |
106 | 106 | * @param \DateTimeInterface|null $endsAt |
107 | 107 | */ |
108 | - public function setEndsAt(?\DateTimeInterface $endsAt): void; |
|
108 | + public function setEndsAt(?\DateTimeInterface $endsAt) : void; |
|
109 | 109 | |
110 | 110 | /** |
111 | 111 | * @return bool |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | /** |
116 | 116 | * @param bool|null $couponBased |
117 | 117 | */ |
118 | - public function setCouponBased(?bool $couponBased): void; |
|
118 | + public function setCouponBased(?bool $couponBased) : void; |
|
119 | 119 | |
120 | 120 | /** |
121 | 121 | * @return Collection|PromotionCouponInterface[] |
@@ -22,16 +22,19 @@ |
||
22 | 22 | { |
23 | 23 | /** |
24 | 24 | * @param string|null $type |
25 | + * @return void |
|
25 | 26 | */ |
26 | 27 | public function setType(?string $type): void; |
27 | 28 | |
28 | 29 | /** |
29 | 30 | * @param array $configuration |
31 | + * @return void |
|
30 | 32 | */ |
31 | 33 | public function setConfiguration(array $configuration): void; |
32 | 34 | |
33 | 35 | /** |
34 | 36 | * @param PromotionInterface|null $promotion |
37 | + * @return void |
|
35 | 38 | */ |
36 | 39 | public function setPromotion(?PromotionInterface $promotion): void; |
37 | 40 | } |
@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | * file that was distributed with this source code. |
10 | 10 | */ |
11 | 11 | |
12 | -declare(strict_types=1); |
|
12 | +declare(strict_types = 1); |
|
13 | 13 | |
14 | 14 | namespace Sylius\Component\Promotion\Model; |
15 | 15 | |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | /** |
24 | 24 | * @param string|null $type |
25 | 25 | */ |
26 | - public function setType(?string $type): void; |
|
26 | + public function setType(?string $type) : void; |
|
27 | 27 | |
28 | 28 | /** |
29 | 29 | * @param array $configuration |
@@ -33,5 +33,5 @@ discard block |
||
33 | 33 | /** |
34 | 34 | * @param PromotionInterface|null $promotion |
35 | 35 | */ |
36 | - public function setPromotion(?PromotionInterface $promotion): void; |
|
36 | + public function setPromotion(?PromotionInterface $promotion) : void; |
|
37 | 37 | } |