@@ -31,6 +31,7 @@ discard block |
||
| 31 | 31 | |
| 32 | 32 | /** |
| 33 | 33 | * @param string $name |
| 34 | + * @return void |
|
| 34 | 35 | */ |
| 35 | 36 | public function setName($name); |
| 36 | 37 | |
@@ -41,6 +42,7 @@ discard block |
||
| 41 | 42 | |
| 42 | 43 | /** |
| 43 | 44 | * @param VariableInterface|null $object |
| 45 | + * @return void |
|
| 44 | 46 | */ |
| 45 | 47 | public function setObject(VariableInterface $object = null); |
| 46 | 48 | |
@@ -51,16 +53,19 @@ discard block |
||
| 51 | 53 | |
| 52 | 54 | /** |
| 53 | 55 | * @param Collection $options |
| 56 | + * @return void |
|
| 54 | 57 | */ |
| 55 | 58 | public function setOptions(Collection $options); |
| 56 | 59 | |
| 57 | 60 | /** |
| 58 | 61 | * @param OptionValueInterface $option |
| 62 | + * @return void |
|
| 59 | 63 | */ |
| 60 | 64 | public function addOption(OptionValueInterface $option); |
| 61 | 65 | |
| 62 | 66 | /** |
| 63 | 67 | * @param OptionValueInterface $option |
| 68 | + * @return void |
|
| 64 | 69 | */ |
| 65 | 70 | public function removeOption(OptionValueInterface $option); |
| 66 | 71 | |
@@ -27,6 +27,7 @@ discard block |
||
| 27 | 27 | |
| 28 | 28 | /** |
| 29 | 29 | * @param OptionInterface $option |
| 30 | + * @return void |
|
| 30 | 31 | */ |
| 31 | 32 | public function setOption(OptionInterface $option = null); |
| 32 | 33 | |
@@ -41,6 +42,7 @@ discard block |
||
| 41 | 42 | * Set internal value. |
| 42 | 43 | * |
| 43 | 44 | * @param string $value |
| 45 | + * @return void |
|
| 44 | 46 | */ |
| 45 | 47 | public function setValue($value); |
| 46 | 48 | |
@@ -39,6 +39,7 @@ discard block |
||
| 39 | 39 | * Sets all option values. |
| 40 | 40 | * |
| 41 | 41 | * @param Collection $optionValues |
| 42 | + * @return void |
|
| 42 | 43 | */ |
| 43 | 44 | public function setValues(Collection $optionValues); |
| 44 | 45 | |
@@ -46,6 +47,7 @@ discard block |
||
| 46 | 47 | * Adds option value. |
| 47 | 48 | * |
| 48 | 49 | * @param OptionValueInterface $optionValue |
| 50 | + * @return void |
|
| 49 | 51 | */ |
| 50 | 52 | public function addValue(OptionValueInterface $optionValue); |
| 51 | 53 | |
@@ -53,6 +55,7 @@ discard block |
||
| 53 | 55 | * Removes option value. |
| 54 | 56 | * |
| 55 | 57 | * @param OptionValueInterface $optionValue |
| 58 | + * @return void |
|
| 56 | 59 | */ |
| 57 | 60 | public function removeValue(OptionValueInterface $optionValue); |
| 58 | 61 | |
@@ -44,6 +44,7 @@ discard block |
||
| 44 | 44 | |
| 45 | 45 | /** |
| 46 | 46 | * @param AddressInterface $address |
| 47 | + * @return void |
|
| 47 | 48 | */ |
| 48 | 49 | public function setShippingAddress(AddressInterface $address); |
| 49 | 50 | |
@@ -54,6 +55,7 @@ discard block |
||
| 54 | 55 | |
| 55 | 56 | /** |
| 56 | 57 | * @param AddressInterface $address |
| 58 | + * @return void |
|
| 57 | 59 | */ |
| 58 | 60 | public function setBillingAddress(AddressInterface $address); |
| 59 | 61 | |
@@ -64,6 +66,7 @@ discard block |
||
| 64 | 66 | |
| 65 | 67 | /** |
| 66 | 68 | * @param string $checkoutState |
| 69 | + * @return void |
|
| 67 | 70 | */ |
| 68 | 71 | public function setCheckoutState($checkoutState); |
| 69 | 72 | |
@@ -74,6 +77,7 @@ discard block |
||
| 74 | 77 | |
| 75 | 78 | /** |
| 76 | 79 | * @param string $paymentState |
| 80 | + * @return void |
|
| 77 | 81 | */ |
| 78 | 82 | public function setPaymentState($paymentState); |
| 79 | 83 | |
@@ -101,14 +105,19 @@ discard block |
||
| 101 | 105 | |
| 102 | 106 | /** |
| 103 | 107 | * @param ShipmentInterface $shipment |
| 108 | + * @return void |
|
| 104 | 109 | */ |
| 105 | 110 | public function addShipment(ShipmentInterface $shipment); |
| 106 | 111 | |
| 107 | 112 | /** |
| 108 | 113 | * @param ShipmentInterface $shipment |
| 114 | + * @return void |
|
| 109 | 115 | */ |
| 110 | 116 | public function removeShipment(ShipmentInterface $shipment); |
| 111 | 117 | |
| 118 | + /** |
|
| 119 | + * @return void |
|
| 120 | + */ |
|
| 112 | 121 | public function removeShipments(); |
| 113 | 122 | |
| 114 | 123 | /** |
@@ -127,6 +136,7 @@ discard block |
||
| 127 | 136 | * @param string |
| 128 | 137 | * |
| 129 | 138 | * @throws \InvalidArgumentException |
| 139 | + * @return void |
|
| 130 | 140 | */ |
| 131 | 141 | public function setCurrencyCode($currencyCode); |
| 132 | 142 | |
@@ -137,6 +147,7 @@ discard block |
||
| 137 | 147 | |
| 138 | 148 | /** |
| 139 | 149 | * @param float $exchangeRate |
| 150 | + * @return void |
|
| 140 | 151 | */ |
| 141 | 152 | public function setExchangeRate($exchangeRate); |
| 142 | 153 | |
@@ -149,11 +160,13 @@ discard block |
||
| 149 | 160 | |
| 150 | 161 | /** |
| 151 | 162 | * @param string |
| 163 | + * @return void |
|
| 152 | 164 | */ |
| 153 | 165 | public function setLocaleCode($localeCode); |
| 154 | 166 | |
| 155 | 167 | /** |
| 156 | 168 | * @param BaseCouponInterface $coupon |
| 169 | + * @return void |
|
| 157 | 170 | */ |
| 158 | 171 | public function setPromotionCoupon(BaseCouponInterface $coupon = null); |
| 159 | 172 | |
@@ -164,6 +177,7 @@ discard block |
||
| 164 | 177 | |
| 165 | 178 | /** |
| 166 | 179 | * @param string $state |
| 180 | + * @return void |
|
| 167 | 181 | */ |
| 168 | 182 | public function setShippingState($state); |
| 169 | 183 | |
@@ -194,6 +208,7 @@ discard block |
||
| 194 | 208 | |
| 195 | 209 | /** |
| 196 | 210 | * @param string $tokenValue |
| 211 | + * @return void |
|
| 197 | 212 | */ |
| 198 | 213 | public function setTokenValue($tokenValue); |
| 199 | 214 | |
@@ -16,9 +16,9 @@ |
||
| 16 | 16 | use Sylius\Component\Customer\Model\CustomerAwareInterface; |
| 17 | 17 | use Sylius\Component\Order\Model\OrderInterface as BaseOrderInterface; |
| 18 | 18 | use Sylius\Component\Payment\Model\PaymentsSubjectInterface; |
| 19 | -use Sylius\Component\Promotion\Model\PromotionCouponInterface as BaseCouponInterface; |
|
| 20 | 19 | use Sylius\Component\Promotion\Model\CountablePromotionSubjectInterface; |
| 21 | 20 | use Sylius\Component\Promotion\Model\PromotionCouponAwarePromotionSubjectInterface; |
| 21 | +use Sylius\Component\Promotion\Model\PromotionCouponInterface as BaseCouponInterface; |
|
| 22 | 22 | use Sylius\Component\User\Model\UserInterface; |
| 23 | 23 | |
| 24 | 24 | /** |
@@ -27,6 +27,7 @@ |
||
| 27 | 27 | |
| 28 | 28 | /** |
| 29 | 29 | * @param string $value |
| 30 | + * @return void |
|
| 30 | 31 | */ |
| 31 | 32 | public function setValue($value); |
| 32 | 33 | } |
@@ -39,6 +39,7 @@ discard block |
||
| 39 | 39 | * Sets all option values. |
| 40 | 40 | * |
| 41 | 41 | * @param Collection $optionValues |
| 42 | + * @return void |
|
| 42 | 43 | */ |
| 43 | 44 | public function setValues(Collection $optionValues); |
| 44 | 45 | |
@@ -46,6 +47,7 @@ discard block |
||
| 46 | 47 | * Adds option value. |
| 47 | 48 | * |
| 48 | 49 | * @param OptionValueInterface $optionValue |
| 50 | + * @return void |
|
| 49 | 51 | */ |
| 50 | 52 | public function addValue(OptionValueInterface $optionValue); |
| 51 | 53 | |
@@ -53,6 +55,7 @@ discard block |
||
| 53 | 55 | * Removes option value. |
| 54 | 56 | * |
| 55 | 57 | * @param OptionValueInterface $optionValue |
| 58 | + * @return void |
|
| 56 | 59 | */ |
| 57 | 60 | public function removeValue(OptionValueInterface $optionValue); |
| 58 | 61 | |
@@ -99,7 +99,7 @@ |
||
| 99 | 99 | /** |
| 100 | 100 | * @param OrderInterface $order |
| 101 | 101 | * |
| 102 | - * @return bool|PaymentInterface |
|
| 102 | + * @return PaymentInterface|null |
|
| 103 | 103 | */ |
| 104 | 104 | private function getLastPayment(OrderInterface $order) |
| 105 | 105 | { |
@@ -12,8 +12,8 @@ |
||
| 12 | 12 | namespace Sylius\Component\Core\OrderProcessing; |
| 13 | 13 | |
| 14 | 14 | use Sylius\Component\Core\Model\OrderInterface; |
| 15 | -use Sylius\Component\Order\Model\OrderInterface as BaseOrderInterface; |
|
| 16 | 15 | use Sylius\Component\Core\Model\PaymentInterface; |
| 16 | +use Sylius\Component\Order\Model\OrderInterface as BaseOrderInterface; |
|
| 17 | 17 | use Sylius\Component\Order\Processor\OrderProcessorInterface; |
| 18 | 18 | use Sylius\Component\Payment\Exception\UnresolvedDefaultPaymentMethodException; |
| 19 | 19 | use Sylius\Component\Payment\Factory\PaymentFactoryInterface; |
@@ -27,6 +27,7 @@ discard block |
||
| 27 | 27 | |
| 28 | 28 | /** |
| 29 | 29 | * @param OptionInterface $option |
| 30 | + * @return void |
|
| 30 | 31 | */ |
| 31 | 32 | public function setOption(OptionInterface $option = null); |
| 32 | 33 | |
@@ -41,6 +42,7 @@ discard block |
||
| 41 | 42 | * Set internal value. |
| 42 | 43 | * |
| 43 | 44 | * @param string $value |
| 45 | + * @return void |
|
| 44 | 46 | */ |
| 45 | 47 | public function setValue($value); |
| 46 | 48 | |
@@ -14,9 +14,9 @@ |
||
| 14 | 14 | use Doctrine\ORM\QueryBuilder; |
| 15 | 15 | use Pagerfanta\PagerfantaInterface; |
| 16 | 16 | use Sylius\Component\Core\Model\ChannelInterface; |
| 17 | -use Sylius\Component\Core\Model\PromotionCouponInterface; |
|
| 18 | 17 | use Sylius\Component\Core\Model\CustomerInterface; |
| 19 | 18 | use Sylius\Component\Core\Model\OrderInterface; |
| 19 | +use Sylius\Component\Core\Model\PromotionCouponInterface; |
|
| 20 | 20 | use Sylius\Component\Order\Repository\OrderRepositoryInterface as BaseOrderRepositoryInterface; |
| 21 | 21 | |
| 22 | 22 | interface OrderRepositoryInterface extends BaseOrderRepositoryInterface |