@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | } |
| 85 | 85 | ] |
| 86 | 86 | } |
| 87 | -EOT; |
|
| 87 | +eot; |
|
| 88 | 88 | |
| 89 | 89 | $this->client->request('POST', '/api/v1/zones/country', [], [], static::$authorizedHeaderWithContentType, $data); |
| 90 | 90 | |
@@ -214,7 +214,7 @@ discard block |
||
| 214 | 214 | } |
| 215 | 215 | ] |
| 216 | 216 | } |
| 217 | -EOT; |
|
| 217 | +eot; |
|
| 218 | 218 | |
| 219 | 219 | $this->client->request('PUT', '/api/v1/zones/' . $zones['zone_eu']->getCode(), [], [], static::$authorizedHeaderWithContentType, $data); |
| 220 | 220 | |
@@ -265,7 +265,7 @@ discard block |
||
| 265 | 265 | { |
| 266 | 266 | "name": "European Union +" |
| 267 | 267 | } |
| 268 | -EOT; |
|
| 268 | +eot; |
|
| 269 | 269 | |
| 270 | 270 | $this->client->request('PATCH', '/api/v1/zones/' . $zones['zone_eu']->getCode(), [], [], static::$authorizedHeaderWithContentType, $data); |
| 271 | 271 | |
@@ -13,8 +13,8 @@ |
||
| 13 | 13 | |
| 14 | 14 | namespace Sylius\Bundle\ReviewBundle\Updater; |
| 15 | 15 | |
| 16 | -use Sylius\Component\Review\Model\ReviewableInterface; |
|
| 17 | 16 | use Sylius\Component\Review\Model\ReviewInterface; |
| 17 | +use Sylius\Component\Review\Model\ReviewableInterface; |
|
| 18 | 18 | |
| 19 | 19 | interface ReviewableRatingUpdaterInterface |
| 20 | 20 | { |
@@ -18,7 +18,13 @@ |
||
| 18 | 18 | |
| 19 | 19 | interface ReviewableRatingUpdaterInterface |
| 20 | 20 | { |
| 21 | + /** |
|
| 22 | + * @return void |
|
| 23 | + */ |
|
| 21 | 24 | public function update(ReviewableInterface $reviewSubject): void; |
| 22 | 25 | |
| 26 | + /** |
|
| 27 | + * @return void |
|
| 28 | + */ |
|
| 23 | 29 | public function updateFromReview(ReviewInterface $review): void; |
| 24 | 30 | } |
@@ -19,8 +19,8 @@ |
||
| 19 | 19 | use Sylius\Component\Resource\Model\VersionedInterface; |
| 20 | 20 | use Sylius\Component\Shipping\Model\ShippableInterface; |
| 21 | 21 | use Sylius\Component\Shipping\Model\ShippingCategoryInterface; |
| 22 | -use Sylius\Component\Taxation\Model\TaxableInterface; |
|
| 23 | 22 | use Sylius\Component\Taxation\Model\TaxCategoryInterface; |
| 23 | +use Sylius\Component\Taxation\Model\TaxableInterface; |
|
| 24 | 24 | |
| 25 | 25 | interface ProductVariantInterface extends |
| 26 | 26 | BaseVariantInterface, |
@@ -30,24 +30,66 @@ discard block |
||
| 30 | 30 | VersionedInterface, |
| 31 | 31 | ProductImagesAwareInterface |
| 32 | 32 | { |
| 33 | + /** |
|
| 34 | + * @return double |
|
| 35 | + */ |
|
| 33 | 36 | public function getWeight(): ?float; |
| 34 | 37 | |
| 38 | + /** |
|
| 39 | + * @param double $weight |
|
| 40 | + * |
|
| 41 | + * @return void |
|
| 42 | + */ |
|
| 35 | 43 | public function setWeight(?float $weight): void; |
| 36 | 44 | |
| 45 | + /** |
|
| 46 | + * @return double |
|
| 47 | + */ |
|
| 37 | 48 | public function getWidth(): ?float; |
| 38 | 49 | |
| 50 | + /** |
|
| 51 | + * @param double $width |
|
| 52 | + * |
|
| 53 | + * @return void |
|
| 54 | + */ |
|
| 39 | 55 | public function setWidth(?float $width): void; |
| 40 | 56 | |
| 57 | + /** |
|
| 58 | + * @return double |
|
| 59 | + */ |
|
| 41 | 60 | public function getHeight(): ?float; |
| 42 | 61 | |
| 62 | + /** |
|
| 63 | + * @param double $height |
|
| 64 | + * |
|
| 65 | + * @return void |
|
| 66 | + */ |
|
| 43 | 67 | public function setHeight(?float $height): void; |
| 44 | 68 | |
| 69 | + /** |
|
| 70 | + * @return double |
|
| 71 | + */ |
|
| 45 | 72 | public function getDepth(): ?float; |
| 46 | 73 | |
| 74 | + /** |
|
| 75 | + * @param double $depth |
|
| 76 | + * |
|
| 77 | + * @return void |
|
| 78 | + */ |
|
| 47 | 79 | public function setDepth(?float $depth): void; |
| 48 | 80 | |
| 81 | + /** |
|
| 82 | + * @param TaxCategoryInterface $category |
|
| 83 | + * |
|
| 84 | + * @return void |
|
| 85 | + */ |
|
| 49 | 86 | public function setTaxCategory(?TaxCategoryInterface $category): void; |
| 50 | 87 | |
| 88 | + /** |
|
| 89 | + * @param ShippingCategoryInterface $shippingCategory |
|
| 90 | + * |
|
| 91 | + * @return void |
|
| 92 | + */ |
|
| 51 | 93 | public function setShippingCategory(?ShippingCategoryInterface $shippingCategory): void; |
| 52 | 94 | |
| 53 | 95 | /** |
@@ -61,11 +103,20 @@ discard block |
||
| 61 | 103 | |
| 62 | 104 | public function hasChannelPricing(ChannelPricingInterface $channelPricing): bool; |
| 63 | 105 | |
| 106 | + /** |
|
| 107 | + * @return void |
|
| 108 | + */ |
|
| 64 | 109 | public function addChannelPricing(ChannelPricingInterface $channelPricing): void; |
| 65 | 110 | |
| 111 | + /** |
|
| 112 | + * @return void |
|
| 113 | + */ |
|
| 66 | 114 | public function removeChannelPricing(ChannelPricingInterface $channelPricing): void; |
| 67 | 115 | |
| 68 | 116 | public function isShippingRequired(): bool; |
| 69 | 117 | |
| 118 | + /** |
|
| 119 | + * @return void |
|
| 120 | + */ |
|
| 70 | 121 | public function setShippingRequired(bool $shippingRequired): void; |
| 71 | 122 | } |
@@ -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 | { |