@@ -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 |
@@ -19,10 +19,10 @@ |
||
19 | 19 | use Sylius\Component\Core\Model\OrderInterface; |
20 | 20 | use Sylius\Component\Core\Model\ShipmentInterface; |
21 | 21 | use Sylius\Component\Core\Model\ShippingMethodInterface; |
22 | +use Sylius\Component\Core\Repository\ShippingMethodRepositoryInterface; |
|
22 | 23 | use Sylius\Component\Core\Resolver\ZoneAndChannelBasedShippingMethodsResolver; |
23 | 24 | use Sylius\Component\Shipping\Checker\ShippingMethodEligibilityCheckerInterface; |
24 | 25 | use Sylius\Component\Shipping\Model\ShippingSubjectInterface; |
25 | -use Sylius\Component\Core\Repository\ShippingMethodRepositoryInterface; |
|
26 | 26 | use Sylius\Component\Shipping\Resolver\ShippingMethodsResolverInterface; |
27 | 27 | |
28 | 28 | /** |
@@ -13,11 +13,11 @@ |
||
13 | 13 | |
14 | 14 | use SM\Factory\FactoryInterface; |
15 | 15 | use SM\StateMachine\StateMachineInterface; |
16 | -use Sylius\Component\Order\Model\OrderInterface; |
|
17 | -use Sylius\Component\Order\StateResolver\StateResolverInterface; |
|
18 | 16 | use Sylius\Component\Core\Model\ShipmentInterface; |
19 | 17 | use Sylius\Component\Core\OrderShippingStates; |
20 | 18 | use Sylius\Component\Core\OrderShippingTransitions; |
19 | +use Sylius\Component\Order\Model\OrderInterface; |
|
20 | +use Sylius\Component\Order\StateResolver\StateResolverInterface; |
|
21 | 21 | |
22 | 22 | /** |
23 | 23 | * @author Paweł Jędrzejewski <[email protected]> |
@@ -181,6 +181,8 @@ |
||
181 | 181 | } |
182 | 182 | |
183 | 183 | /** |
184 | + * @param string $code |
|
185 | + * @param string $name |
|
184 | 186 | * @return ChannelInterface |
185 | 187 | */ |
186 | 188 | private function createChannel($code, $name) |
@@ -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 | } |
@@ -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 | } |
@@ -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 |