@@ -16,8 +16,8 @@ |
||
16 | 16 | use Sylius\Component\Addressing\Model\ZoneInterface; |
17 | 17 | use Sylius\Component\Channel\Model\ChannelsAwareInterface; |
18 | 18 | use Sylius\Component\Shipping\Model\ShippingMethodInterface as BaseShippingMethodInterface; |
19 | -use Sylius\Component\Taxation\Model\TaxableInterface; |
|
20 | 19 | use Sylius\Component\Taxation\Model\TaxCategoryInterface; |
20 | +use Sylius\Component\Taxation\Model\TaxableInterface; |
|
21 | 21 | |
22 | 22 | interface ShippingMethodInterface extends BaseShippingMethodInterface, TaxableInterface, ChannelsAwareInterface |
23 | 23 | { |
@@ -21,9 +21,18 @@ |
||
21 | 21 | |
22 | 22 | interface ShippingMethodInterface extends BaseShippingMethodInterface, TaxableInterface, ChannelsAwareInterface |
23 | 23 | { |
24 | + /** |
|
25 | + * @return ZoneInterface |
|
26 | + */ |
|
24 | 27 | public function getZone(): ?ZoneInterface; |
25 | 28 | |
29 | + /** |
|
30 | + * @return void |
|
31 | + */ |
|
26 | 32 | public function setZone(?ZoneInterface $zone): void; |
27 | 33 | |
34 | + /** |
|
35 | + * @return void |
|
36 | + */ |
|
28 | 37 | public function setTaxCategory(?TaxCategoryInterface $category): void; |
29 | 38 | } |
@@ -15,5 +15,8 @@ |
||
15 | 15 | |
16 | 16 | interface UnpaidOrdersStateUpdaterInterface |
17 | 17 | { |
18 | + /** |
|
19 | + * @return void |
|
20 | + */ |
|
18 | 21 | public function cancel(): void; |
19 | 22 | } |
@@ -15,5 +15,8 @@ |
||
15 | 15 | |
16 | 16 | interface ExpiredCartsRemoverInterface |
17 | 17 | { |
18 | + /** |
|
19 | + * @return void |
|
20 | + */ |
|
18 | 21 | public function remove(): void; |
19 | 22 | } |
@@ -17,5 +17,8 @@ |
||
17 | 17 | |
18 | 18 | interface PasswordUpdaterInterface |
19 | 19 | { |
20 | + /** |
|
21 | + * @return void |
|
22 | + */ |
|
20 | 23 | public function updatePassword(CredentialsHolderInterface $user): void; |
21 | 24 | } |
@@ -17,8 +17,8 @@ |
||
17 | 17 | use Sylius\Component\Channel\Model\ChannelsAwareInterface; |
18 | 18 | use Sylius\Component\Product\Model\ProductInterface as BaseProductInterface; |
19 | 19 | use Sylius\Component\Resource\Model\TranslationInterface; |
20 | -use Sylius\Component\Review\Model\ReviewableInterface; |
|
21 | 20 | use Sylius\Component\Review\Model\ReviewInterface; |
21 | +use Sylius\Component\Review\Model\ReviewableInterface; |
|
22 | 22 | |
23 | 23 | interface ProductInterface extends |
24 | 24 | BaseProductInterface, |
@@ -42,6 +42,7 @@ discard block |
||
42 | 42 | |
43 | 43 | /** |
44 | 44 | * @throws \InvalidArgumentException |
45 | + * @return void |
|
45 | 46 | */ |
46 | 47 | public function setVariantSelectionMethod(?string $variantSelectionMethod): void; |
47 | 48 | |
@@ -49,12 +50,24 @@ discard block |
||
49 | 50 | |
50 | 51 | public function getVariantSelectionMethodLabel(): string; |
51 | 52 | |
53 | + /** |
|
54 | + * @return string |
|
55 | + */ |
|
52 | 56 | public function getShortDescription(): ?string; |
53 | 57 | |
58 | + /** |
|
59 | + * @return void |
|
60 | + */ |
|
54 | 61 | public function setShortDescription(?string $shortDescription): void; |
55 | 62 | |
63 | + /** |
|
64 | + * @return \Sylius\Component\Taxonomy\Model\TaxonInterface |
|
65 | + */ |
|
56 | 66 | public function getMainTaxon(): ?TaxonInterface; |
57 | 67 | |
68 | + /** |
|
69 | + * @return void |
|
70 | + */ |
|
58 | 71 | public function setMainTaxon(?TaxonInterface $mainTaxon): void; |
59 | 72 | |
60 | 73 | /** |
@@ -63,6 +76,7 @@ discard block |
||
63 | 76 | public function getAcceptedReviews(): Collection; |
64 | 77 | |
65 | 78 | /** |
79 | + * @param string $locale |
|
66 | 80 | * @return ProductTranslationInterface |
67 | 81 | */ |
68 | 82 | public function getTranslation(?string $locale = null): TranslationInterface; |
@@ -127,6 +127,7 @@ discard block |
||
127 | 127 | * @Given the store has a tax category :name with a code :code |
128 | 128 | * @Given the store has a tax category :name |
129 | 129 | * @Given the store has a tax category :name also |
130 | + * @param string $name |
|
130 | 131 | */ |
131 | 132 | public function theStoreHasTaxCategoryWithCode($name, $code = null) |
132 | 133 | { |
@@ -213,7 +214,7 @@ discard block |
||
213 | 214 | /** |
214 | 215 | * @param string $taxRateAmount |
215 | 216 | * |
216 | - * @return string |
|
217 | + * @return integer |
|
217 | 218 | */ |
218 | 219 | private function getAmountFromString($taxRateAmount) |
219 | 220 | { |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | "email": "[email protected]" |
129 | 129 | } |
130 | 130 | } |
131 | -EOT; |
|
131 | +eot; |
|
132 | 132 | |
133 | 133 | $this->client->request('POST', $this->getReviewListUrl($product), [], [], static::$authorizedHeaderWithContentType, $data); |
134 | 134 | $response = $this->client->getResponse(); |
@@ -219,7 +219,7 @@ discard block |
||
219 | 219 | "rating": "1", |
220 | 220 | "comment": "NEW_REVIEW_COMMENT" |
221 | 221 | } |
222 | -EOT; |
|
222 | +eot; |
|
223 | 223 | $this->client->request('PUT', $this->getReviewUrl($product, $productReview), [], [], static::$authorizedHeaderWithContentType, $data); |
224 | 224 | $response = $this->client->getResponse(); |
225 | 225 | |
@@ -246,7 +246,7 @@ discard block |
||
246 | 246 | { |
247 | 247 | "comment": "A_NEW_REVIEW_COMMENT" |
248 | 248 | } |
249 | -EOT; |
|
249 | +eot; |
|
250 | 250 | |
251 | 251 | $this->client->request('PATCH', $this->getReviewUrl($product, $productReview), [], [], static::$authorizedHeaderWithContentType, $data); |
252 | 252 | $response = $this->client->getResponse(); |
@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | "defaultLocale": "en_US", |
130 | 130 | "enabled": true |
131 | 131 | } |
132 | -EOT; |
|
132 | +eot; |
|
133 | 133 | |
134 | 134 | $this->client->request('POST', '/api/v1/channels/', [], [], static::$authorizedHeaderWithContentType, $data); |
135 | 135 | |
@@ -168,7 +168,7 @@ discard block |
||
168 | 168 | "skippingPaymentStepAllowed": true, |
169 | 169 | "accountVerificationRequired": false |
170 | 170 | } |
171 | -EOT; |
|
171 | +eot; |
|
172 | 172 | |
173 | 173 | $this->client->request('POST', '/api/v1/channels/', [], [], static::$authorizedHeaderWithContentType, $data); |
174 | 174 | |
@@ -225,7 +225,7 @@ discard block |
||
225 | 225 | "hostname": "localhost", |
226 | 226 | "taxCalculationStrategy": "order_items_based" |
227 | 227 | } |
228 | -EOT; |
|
228 | +eot; |
|
229 | 229 | |
230 | 230 | $this->client->request('PUT', $this->getChannelUrl($channel), [], [], static::$authorizedHeaderWithContentType, $data); |
231 | 231 | |
@@ -284,7 +284,7 @@ discard block |
||
284 | 284 | "color": "black", |
285 | 285 | "enabled": false |
286 | 286 | } |
287 | -EOT; |
|
287 | +eot; |
|
288 | 288 | |
289 | 289 | $this->client->request('PATCH', $this->getChannelUrl($channel), [], [], static::$authorizedHeaderWithContentType, $data); |
290 | 290 |
@@ -17,8 +17,8 @@ |
||
17 | 17 | use PhpSpec\ObjectBehavior; |
18 | 18 | use Sylius\Bundle\ReviewBundle\Updater\ReviewableRatingUpdaterInterface; |
19 | 19 | use Sylius\Component\Review\Calculator\ReviewableRatingCalculatorInterface; |
20 | -use Sylius\Component\Review\Model\ReviewableInterface; |
|
21 | 20 | use Sylius\Component\Review\Model\ReviewInterface; |
21 | +use Sylius\Component\Review\Model\ReviewableInterface; |
|
22 | 22 | |
23 | 23 | final class AverageRatingUpdaterSpec extends ObjectBehavior |
24 | 24 | { |