@@ -44,6 +44,7 @@ discard block |
||
44 | 44 | |
45 | 45 | /** |
46 | 46 | * @param AddressInterface|null $address |
47 | + * @return void |
|
47 | 48 | */ |
48 | 49 | public function setShippingAddress(?AddressInterface $address): void; |
49 | 50 | |
@@ -54,6 +55,7 @@ discard block |
||
54 | 55 | |
55 | 56 | /** |
56 | 57 | * @param AddressInterface|null $address |
58 | + * @return void |
|
57 | 59 | */ |
58 | 60 | public function setBillingAddress(?AddressInterface $address): void; |
59 | 61 | |
@@ -64,6 +66,7 @@ discard block |
||
64 | 66 | |
65 | 67 | /** |
66 | 68 | * @param string|null $checkoutState |
69 | + * @return void |
|
67 | 70 | */ |
68 | 71 | public function setCheckoutState(?string $checkoutState): void; |
69 | 72 | |
@@ -74,6 +77,7 @@ discard block |
||
74 | 77 | |
75 | 78 | /** |
76 | 79 | * @param string|null $paymentState |
80 | + * @return void |
|
77 | 81 | */ |
78 | 82 | public function setPaymentState(?string $paymentState): void; |
79 | 83 | |
@@ -106,14 +110,19 @@ discard block |
||
106 | 110 | |
107 | 111 | /** |
108 | 112 | * @param ShipmentInterface $shipment |
113 | + * @return void |
|
109 | 114 | */ |
110 | 115 | public function addShipment(ShipmentInterface $shipment): void; |
111 | 116 | |
112 | 117 | /** |
113 | 118 | * @param ShipmentInterface $shipment |
119 | + * @return void |
|
114 | 120 | */ |
115 | 121 | public function removeShipment(ShipmentInterface $shipment): void; |
116 | 122 | |
123 | + /** |
|
124 | + * @return void |
|
125 | + */ |
|
117 | 126 | public function removeShipments(): void; |
118 | 127 | |
119 | 128 | /** |
@@ -130,6 +139,7 @@ discard block |
||
130 | 139 | |
131 | 140 | /** |
132 | 141 | * @param string|null $currencyCode |
142 | + * @return void |
|
133 | 143 | */ |
134 | 144 | public function setCurrencyCode(?string $currencyCode): void; |
135 | 145 | |
@@ -140,11 +150,13 @@ discard block |
||
140 | 150 | |
141 | 151 | /** |
142 | 152 | * @param string|null $localeCode |
153 | + * @return void |
|
143 | 154 | */ |
144 | 155 | public function setLocaleCode(?string $localeCode): void; |
145 | 156 | |
146 | 157 | /** |
147 | 158 | * @param BaseCouponInterface|null $coupon |
159 | + * @return void |
|
148 | 160 | */ |
149 | 161 | public function setPromotionCoupon(?BaseCouponInterface $coupon): void; |
150 | 162 | |
@@ -155,6 +167,7 @@ discard block |
||
155 | 167 | |
156 | 168 | /** |
157 | 169 | * @param string|null $state |
170 | + * @return void |
|
158 | 171 | */ |
159 | 172 | public function setShippingState(?string $state): void; |
160 | 173 | |
@@ -187,6 +200,7 @@ discard block |
||
187 | 200 | |
188 | 201 | /** |
189 | 202 | * @param string|null $tokenValue |
203 | + * @return void |
|
190 | 204 | */ |
191 | 205 | public function setTokenValue(?string $tokenValue): void; |
192 | 206 | |
@@ -197,6 +211,7 @@ discard block |
||
197 | 211 | |
198 | 212 | /** |
199 | 213 | * @param string|null $customerIp |
214 | + * @return void |
|
200 | 215 | */ |
201 | 216 | public function setCustomerIp(?string $customerIp): void; |
202 | 217 |
@@ -168,7 +168,7 @@ discard block |
||
168 | 168 | /** |
169 | 169 | * @param string $name |
170 | 170 | * |
171 | - * @return mixed|string|null |
|
171 | + * @return string |
|
172 | 172 | */ |
173 | 173 | public function getRedirectRoute($name) |
174 | 174 | { |
@@ -228,7 +228,7 @@ discard block |
||
228 | 228 | } |
229 | 229 | |
230 | 230 | /** |
231 | - * @param object|null $resource |
|
231 | + * @param \Sylius\Component\Resource\Model\ResourceInterface|null $resource |
|
232 | 232 | * |
233 | 233 | * @return array |
234 | 234 | */ |
@@ -20,11 +20,13 @@ |
||
20 | 20 | { |
21 | 21 | /** |
22 | 22 | * @param AddressInterface $address |
23 | + * @return void |
|
23 | 24 | */ |
24 | 25 | public function specifyShippingAddress(AddressInterface $address); |
25 | 26 | |
26 | 27 | /** |
27 | 28 | * @param AddressInterface $address |
29 | + * @return void |
|
28 | 30 | */ |
29 | 31 | public function specifyBillingAddress(AddressInterface $address); |
30 | 32 |
@@ -19,16 +19,19 @@ |
||
19 | 19 | { |
20 | 20 | /** |
21 | 21 | * @param string $code |
22 | + * @return void |
|
22 | 23 | */ |
23 | 24 | public function specifyCode($code); |
24 | 25 | |
25 | 26 | /** |
26 | 27 | * @param string $name |
28 | + * @return void |
|
27 | 29 | */ |
28 | 30 | public function nameIt($name); |
29 | 31 | |
30 | 32 | /** |
31 | 33 | * @param string $description |
34 | + * @return void |
|
32 | 35 | */ |
33 | 36 | public function specifyDescription($description); |
34 | 37 | } |
@@ -87,10 +87,10 @@ |
||
87 | 87 | if (isset($sorting['price'])) { |
88 | 88 | // Another hack, the subquery to get the first position variant |
89 | 89 | $subQuery = $this->createQueryBuilder('m') |
90 | - ->select('min(v.position)') |
|
91 | - ->innerJoin('m.variants', 'v') |
|
92 | - ->andWhere('m.id = :product_id') |
|
93 | - ; |
|
90 | + ->select('min(v.position)') |
|
91 | + ->innerJoin('m.variants', 'v') |
|
92 | + ->andWhere('m.id = :product_id') |
|
93 | + ; |
|
94 | 94 | |
95 | 95 | $queryBuilder |
96 | 96 | ->innerJoin('o.variants', 'variant') |
@@ -103,7 +103,8 @@ |
||
103 | 103 | } |
104 | 104 | } |
105 | 105 | |
106 | - public function reset() { |
|
106 | + public function reset() |
|
107 | + { |
|
107 | 108 | $this->cart = null; |
108 | 109 | } |
109 | 110 | } |