@@ -43,6 +43,7 @@ discard block |
||
| 43 | 43 | |
| 44 | 44 | /** |
| 45 | 45 | * @param AddressInterface $address |
| 46 | + * @return void |
|
| 46 | 47 | */ |
| 47 | 48 | public function setShippingAddress(AddressInterface $address); |
| 48 | 49 | |
@@ -53,6 +54,7 @@ discard block |
||
| 53 | 54 | |
| 54 | 55 | /** |
| 55 | 56 | * @param AddressInterface $address |
| 57 | + * @return void |
|
| 56 | 58 | */ |
| 57 | 59 | public function setBillingAddress(AddressInterface $address); |
| 58 | 60 | |
@@ -63,6 +65,7 @@ discard block |
||
| 63 | 65 | |
| 64 | 66 | /** |
| 65 | 67 | * @param string $checkoutState |
| 68 | + * @return void |
|
| 66 | 69 | */ |
| 67 | 70 | public function setCheckoutState($checkoutState); |
| 68 | 71 | |
@@ -73,23 +76,24 @@ discard block |
||
| 73 | 76 | |
| 74 | 77 | /** |
| 75 | 78 | * @param string $paymentState |
| 79 | + * @return void |
|
| 76 | 80 | */ |
| 77 | 81 | public function setPaymentState($paymentState); |
| 78 | 82 | |
| 79 | 83 | /** |
| 80 | - * @return Collection|OrderItemUnitInterface[] |
|
| 84 | + * @return \Doctrine\Common\Collections\ArrayCollection |
|
| 81 | 85 | */ |
| 82 | 86 | public function getItemUnits(); |
| 83 | 87 | |
| 84 | 88 | /** |
| 85 | 89 | * @param ProductVariantInterface $variant |
| 86 | 90 | * |
| 87 | - * @return Collection|OrderItemUnitInterface[] |
|
| 91 | + * @return \Doctrine\Common\Collections\ArrayCollection |
|
| 88 | 92 | */ |
| 89 | 93 | public function getItemUnitsByVariant(ProductVariantInterface $variant); |
| 90 | 94 | |
| 91 | 95 | /** |
| 92 | - * @return Collection|ShipmentInterface[] |
|
| 96 | + * @return \Sylius\Component\Shipping\Model\ShipmentInterface[] |
|
| 93 | 97 | */ |
| 94 | 98 | public function getShipments(); |
| 95 | 99 | |
@@ -100,11 +104,13 @@ discard block |
||
| 100 | 104 | |
| 101 | 105 | /** |
| 102 | 106 | * @param ShipmentInterface $shipment |
| 107 | + * @return void |
|
| 103 | 108 | */ |
| 104 | 109 | public function addShipment(ShipmentInterface $shipment); |
| 105 | 110 | |
| 106 | 111 | /** |
| 107 | 112 | * @param ShipmentInterface $shipment |
| 113 | + * @return void |
|
| 108 | 114 | */ |
| 109 | 115 | public function removeShipment(ShipmentInterface $shipment); |
| 110 | 116 | |
@@ -122,6 +128,7 @@ discard block |
||
| 122 | 128 | |
| 123 | 129 | /** |
| 124 | 130 | * @param string |
| 131 | + * @return void |
|
| 125 | 132 | */ |
| 126 | 133 | public function setCurrencyCode($currencyCode); |
| 127 | 134 | |
@@ -132,11 +139,13 @@ discard block |
||
| 132 | 139 | |
| 133 | 140 | /** |
| 134 | 141 | * @param float $exchangeRate |
| 142 | + * @return void |
|
| 135 | 143 | */ |
| 136 | 144 | public function setExchangeRate($exchangeRate); |
| 137 | 145 | |
| 138 | 146 | /** |
| 139 | 147 | * @param BaseCouponInterface $coupon |
| 148 | + * @return void |
|
| 140 | 149 | */ |
| 141 | 150 | public function setPromotionCoupon(BaseCouponInterface $coupon = null); |
| 142 | 151 | |
@@ -147,6 +156,7 @@ discard block |
||
| 147 | 156 | |
| 148 | 157 | /** |
| 149 | 158 | * @param string $state |
| 159 | + * @return void |
|
| 150 | 160 | */ |
| 151 | 161 | public function setShippingState($state); |
| 152 | 162 | |
@@ -13,7 +13,6 @@ |
||
| 13 | 13 | |
| 14 | 14 | use Doctrine\Common\Collections\ArrayCollection; |
| 15 | 15 | use Doctrine\Common\Collections\Collection; |
| 16 | -use Sylius\Component\Addressing\Model\ZoneInterface; |
|
| 17 | 16 | use Sylius\Component\Channel\Model\ChannelInterface as BaseChannelInterface; |
| 18 | 17 | use Sylius\Component\Product\Model\Product as BaseProduct; |
| 19 | 18 | use Sylius\Component\Review\Model\ReviewInterface; |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | */ |
| 33 | 33 | public function getMetadataIdentifier() |
| 34 | 34 | { |
| 35 | - return $this->getMetadataClassIdentifier().'-'.$this->getId(); |
|
| 35 | + return $this->getMetadataClassIdentifier() . '-' . $this->getId(); |
|
| 36 | 36 | } |
| 37 | 37 | |
| 38 | 38 | /** |
@@ -11,8 +11,6 @@ |
||
| 11 | 11 | |
| 12 | 12 | namespace Sylius\Component\Core\Model; |
| 13 | 13 | |
| 14 | -use Doctrine\Common\Collections\Collection; |
|
| 15 | -use Sylius\Component\Addressing\Model\ZoneInterface; |
|
| 16 | 14 | use Sylius\Component\Channel\Model\ChannelsAwareInterface; |
| 17 | 15 | use Sylius\Component\Metadata\Model\MetadataSubjectInterface; |
| 18 | 16 | use Sylius\Component\Product\Model\ProductInterface as BaseProductInterface; |
@@ -36,11 +36,13 @@ discard block |
||
| 36 | 36 | |
| 37 | 37 | /** |
| 38 | 38 | * @param string $locale |
| 39 | + * @return void |
|
| 39 | 40 | */ |
| 40 | 41 | public function setCurrentLocale($locale); |
| 41 | 42 | |
| 42 | 43 | /** |
| 43 | 44 | * @param string $locale |
| 45 | + * @return void |
|
| 44 | 46 | */ |
| 45 | 47 | public function setFallbackLocale($locale); |
| 46 | 48 | |
@@ -51,11 +53,13 @@ discard block |
||
| 51 | 53 | |
| 52 | 54 | /** |
| 53 | 55 | * @param TranslationInterface $translation |
| 56 | + * @return void |
|
| 54 | 57 | */ |
| 55 | 58 | public function addTranslation(TranslationInterface $translation); |
| 56 | 59 | |
| 57 | 60 | /** |
| 58 | 61 | * @param TranslationInterface $translation |
| 62 | + * @return void |
|
| 59 | 63 | */ |
| 60 | 64 | public function removeTranslation(TranslationInterface $translation); |
| 61 | 65 | } |
@@ -55,11 +55,13 @@ discard block |
||
| 55 | 55 | |
| 56 | 56 | /** |
| 57 | 57 | * @param ProductVariantImageInterface $image |
| 58 | + * @return void |
|
| 58 | 59 | */ |
| 59 | 60 | public function addImage(ProductVariantImageInterface $image); |
| 60 | 61 | |
| 61 | 62 | /** |
| 62 | 63 | * @param ProductVariantImageInterface $image |
| 64 | + * @return void |
|
| 63 | 65 | */ |
| 64 | 66 | public function removeImage(ProductVariantImageInterface $image); |
| 65 | 67 | |
@@ -70,6 +72,7 @@ discard block |
||
| 70 | 72 | |
| 71 | 73 | /** |
| 72 | 74 | * @param int $sold |
| 75 | + * @return void |
|
| 73 | 76 | */ |
| 74 | 77 | public function setSold($sold); |
| 75 | 78 | |
@@ -80,6 +83,7 @@ discard block |
||
| 80 | 83 | |
| 81 | 84 | /** |
| 82 | 85 | * @param float $weight |
| 86 | + * @return void |
|
| 83 | 87 | */ |
| 84 | 88 | public function setWeight($weight); |
| 85 | 89 | |
@@ -90,6 +94,7 @@ discard block |
||
| 90 | 94 | |
| 91 | 95 | /** |
| 92 | 96 | * @param float $width |
| 97 | + * @return void |
|
| 93 | 98 | */ |
| 94 | 99 | public function setWidth($width); |
| 95 | 100 | |
@@ -100,6 +105,7 @@ discard block |
||
| 100 | 105 | |
| 101 | 106 | /** |
| 102 | 107 | * @param float $height |
| 108 | + * @return void |
|
| 103 | 109 | */ |
| 104 | 110 | public function setHeight($height); |
| 105 | 111 | |
@@ -110,6 +116,7 @@ discard block |
||
| 110 | 116 | |
| 111 | 117 | /** |
| 112 | 118 | * @param float $depth |
| 119 | + * @return void |
|
| 113 | 120 | */ |
| 114 | 121 | public function setDepth($depth); |
| 115 | 122 | |
@@ -120,6 +127,7 @@ discard block |
||
| 120 | 127 | |
| 121 | 128 | /** |
| 122 | 129 | * @param int|null $originalPrice |
| 130 | + * @return void |
|
| 123 | 131 | */ |
| 124 | 132 | public function setOriginalPrice($originalPrice); |
| 125 | 133 | |
@@ -130,6 +138,7 @@ discard block |
||
| 130 | 138 | |
| 131 | 139 | /** |
| 132 | 140 | * @param TaxCategoryInterface $category |
| 141 | + * @return void |
|
| 133 | 142 | */ |
| 134 | 143 | public function setTaxCategory(TaxCategoryInterface $category = null); |
| 135 | 144 | } |
@@ -13,9 +13,9 @@ |
||
| 13 | 13 | |
| 14 | 14 | use PhpSpec\ObjectBehavior; |
| 15 | 15 | use Sylius\Component\Resource\Repository\RepositoryInterface; |
| 16 | -use Sylius\Component\Taxation\Model\TaxableInterface; |
|
| 17 | 16 | use Sylius\Component\Taxation\Model\TaxCategoryInterface; |
| 18 | 17 | use Sylius\Component\Taxation\Model\TaxRateInterface; |
| 18 | +use Sylius\Component\Taxation\Model\TaxableInterface; |
|
| 19 | 19 | use Sylius\Component\Taxation\Resolver\TaxRateResolverInterface; |
| 20 | 20 | |
| 21 | 21 | /** |
@@ -20,12 +20,13 @@ |
||
| 20 | 20 | interface TaxonInterface extends VariableTaxonInterface |
| 21 | 21 | { |
| 22 | 22 | /** |
| 23 | - * @return Collection|ProductInterface[] |
|
| 23 | + * @return \Doctrine\Common\Collections\ArrayCollection |
|
| 24 | 24 | */ |
| 25 | 25 | public function getProducts(); |
| 26 | 26 | |
| 27 | 27 | /** |
| 28 | 28 | * @param ProductInterface[] $products |
| 29 | + * @return void |
|
| 29 | 30 | */ |
| 30 | 31 | public function setProducts($products); |
| 31 | 32 | } |
@@ -23,6 +23,9 @@ |
||
| 23 | 23 | */ |
| 24 | 24 | interface ProductRepositoryInterface extends BaseProductRepositoryInterface |
| 25 | 25 | { |
| 26 | + /** |
|
| 27 | + * @return \Doctrine\ORM\QueryBuilder |
|
| 28 | + */ |
|
| 26 | 29 | public function createListQueryBuilder(); |
| 27 | 30 | |
| 28 | 31 | /** |
@@ -12,9 +12,9 @@ |
||
| 12 | 12 | namespace Sylius\Component\Core\Resolver; |
| 13 | 13 | |
| 14 | 14 | use Sylius\Component\Core\Model\ChannelInterface; |
| 15 | +use Sylius\Component\Core\Model\ShipmentInterface as CoreShipmentInterface; |
|
| 15 | 16 | use Sylius\Component\Shipping\Exception\UnresolvedDefaultShippingMethodException; |
| 16 | 17 | use Sylius\Component\Shipping\Model\ShipmentInterface; |
| 17 | -use Sylius\Component\Core\Model\ShipmentInterface as CoreShipmentInterface; |
|
| 18 | 18 | use Sylius\Component\Shipping\Repository\ShippingMethodRepositoryInterface; |
| 19 | 19 | use Sylius\Component\Shipping\Resolver\DefaultShippingMethodResolverInterface; |
| 20 | 20 | use Webmozart\Assert\Assert; |
@@ -11,9 +11,8 @@ |
||
| 11 | 11 | |
| 12 | 12 | namespace spec\Sylius\Component\Core\Dashboard; |
| 13 | 13 | |
| 14 | -use Sylius\Component\Core\Dashboard\DashboardStatistics; |
|
| 15 | 14 | use PhpSpec\ObjectBehavior; |
| 16 | -use Prophecy\Argument; |
|
| 15 | +use Sylius\Component\Core\Dashboard\DashboardStatistics; |
|
| 17 | 16 | |
| 18 | 17 | /** |
| 19 | 18 | * @mixin DashboardStatistics |
@@ -15,10 +15,10 @@ |
||
| 15 | 15 | use Sylius\Component\Core\Factory\ActionFactory; |
| 16 | 16 | use Sylius\Component\Core\Factory\ActionFactoryInterface; |
| 17 | 17 | use Sylius\Component\Core\Promotion\Action\FixedDiscountAction; |
| 18 | -use Sylius\Component\Core\Promotion\Action\UnitFixedDiscountAction; |
|
| 19 | -use Sylius\Component\Core\Promotion\Action\UnitPercentageDiscountAction; |
|
| 20 | 18 | use Sylius\Component\Core\Promotion\Action\PercentageDiscountAction; |
| 21 | 19 | use Sylius\Component\Core\Promotion\Action\ShippingDiscountAction; |
| 20 | +use Sylius\Component\Core\Promotion\Action\UnitFixedDiscountAction; |
|
| 21 | +use Sylius\Component\Core\Promotion\Action\UnitPercentageDiscountAction; |
|
| 22 | 22 | use Sylius\Component\Promotion\Model\ActionInterface; |
| 23 | 23 | use Sylius\Component\Resource\Factory\FactoryInterface; |
| 24 | 24 | |