@@ -53,7 +53,7 @@ |
||
53 | 53 | /** |
54 | 54 | * @param string $path |
55 | 55 | * |
56 | - * @return array |
|
56 | + * @return \Symfony\Component\Finder\Finder |
|
57 | 57 | */ |
58 | 58 | private function getFiles($path) |
59 | 59 | { |
@@ -126,7 +126,7 @@ |
||
126 | 126 | /** |
127 | 127 | * Returns all zone types available. |
128 | 128 | * |
129 | - * @return array of self::TYPE_* |
|
129 | + * @return string[] of self::TYPE_* |
|
130 | 130 | */ |
131 | 131 | public static function getTypes() |
132 | 132 | { |
@@ -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; |
@@ -17,11 +17,13 @@ |
||
17 | 17 | { |
18 | 18 | /** |
19 | 19 | * @param ImageInterface $image |
20 | + * @return void |
|
20 | 21 | */ |
21 | 22 | public function upload(ImageInterface $image); |
22 | 23 | |
23 | 24 | /** |
24 | 25 | * @param string $path |
26 | + * @return boolean |
|
25 | 27 | */ |
26 | 28 | public function remove($path); |
27 | 29 | } |
@@ -58,7 +58,7 @@ |
||
58 | 58 | } |
59 | 59 | |
60 | 60 | /** |
61 | - * @return array |
|
61 | + * @return string[] |
|
62 | 62 | */ |
63 | 63 | public function getRecipients() |
64 | 64 | { |
@@ -33,6 +33,7 @@ discard block |
||
33 | 33 | |
34 | 34 | /** |
35 | 35 | * @param int $unitPrice |
36 | + * @return void |
|
36 | 37 | */ |
37 | 38 | public function setUnitPrice($unitPrice); |
38 | 39 | |
@@ -43,6 +44,7 @@ discard block |
||
43 | 44 | |
44 | 45 | /** |
45 | 46 | * Recalculate totals. Should be used after every unit change. |
47 | + * @return void |
|
46 | 48 | */ |
47 | 49 | public function recalculateUnitsTotal(); |
48 | 50 | |
@@ -63,6 +65,7 @@ discard block |
||
63 | 65 | |
64 | 66 | /** |
65 | 67 | * @param bool $immutable |
68 | + * @return void |
|
66 | 69 | */ |
67 | 70 | public function setImmutable($immutable); |
68 | 71 | |
@@ -80,11 +83,13 @@ discard block |
||
80 | 83 | |
81 | 84 | /** |
82 | 85 | * @param OrderItemUnitInterface $itemUnit |
86 | + * @return void |
|
83 | 87 | */ |
84 | 88 | public function addUnit(OrderItemUnitInterface $itemUnit); |
85 | 89 | |
86 | 90 | /** |
87 | 91 | * @param OrderItemUnitInterface $itemUnit |
92 | + * @return void |
|
88 | 93 | */ |
89 | 94 | public function removeUnit(OrderItemUnitInterface $itemUnit); |
90 | 95 | |
@@ -97,13 +102,14 @@ discard block |
||
97 | 102 | |
98 | 103 | /** |
99 | 104 | * @param string|null $type |
105 | + * @return void |
|
100 | 106 | */ |
101 | 107 | public function removeAdjustmentsRecursively($type = null); |
102 | 108 | |
103 | 109 | /** |
104 | 110 | * @param string|null $type |
105 | 111 | * |
106 | - * @return array |
|
112 | + * @return integer |
|
107 | 113 | */ |
108 | 114 | public function getAdjustmentsTotalRecursively($type = null); |
109 | 115 | } |
@@ -39,6 +39,7 @@ discard block |
||
39 | 39 | |
40 | 40 | /** |
41 | 41 | * @param null|PaymentMethodInterface $method |
42 | + * @return void |
|
42 | 43 | */ |
43 | 44 | public function setMethod(PaymentMethodInterface $method = null); |
44 | 45 | |
@@ -49,6 +50,7 @@ discard block |
||
49 | 50 | |
50 | 51 | /** |
51 | 52 | * @param null|PaymentSourceInterface $source |
53 | + * @return void |
|
52 | 54 | */ |
53 | 55 | public function setSource(PaymentSourceInterface $source = null); |
54 | 56 | |
@@ -59,6 +61,7 @@ discard block |
||
59 | 61 | |
60 | 62 | /** |
61 | 63 | * @param string $state |
64 | + * @return void |
|
62 | 65 | */ |
63 | 66 | public function setState($state); |
64 | 67 | |
@@ -69,6 +72,8 @@ discard block |
||
69 | 72 | |
70 | 73 | /** |
71 | 74 | * @param string |
75 | + * @param string $currencyCode |
|
76 | + * @return void |
|
72 | 77 | */ |
73 | 78 | public function setCurrencyCode($currencyCode); |
74 | 79 | |
@@ -79,11 +84,13 @@ discard block |
||
79 | 84 | |
80 | 85 | /** |
81 | 86 | * @param int $amount |
87 | + * @return void |
|
82 | 88 | */ |
83 | 89 | public function setAmount($amount); |
84 | 90 | |
85 | 91 | /** |
86 | 92 | * @param array|\Traversable $details |
93 | + * @return void |
|
87 | 94 | */ |
88 | 95 | public function setDetails($details); |
89 | 96 |
@@ -60,7 +60,7 @@ |
||
60 | 60 | /** |
61 | 61 | * @param InstructionInterface $instruction |
62 | 62 | * |
63 | - * @return int |
|
63 | + * @return double |
|
64 | 64 | */ |
65 | 65 | private function calculatePossibleGenerationAmount(InstructionInterface $instruction) |
66 | 66 | { |
@@ -23,10 +23,17 @@ |
||
23 | 23 | |
24 | 24 | /** |
25 | 25 | * @param bool $enabled |
26 | + * @return void |
|
26 | 27 | */ |
27 | 28 | public function setEnabled($enabled); |
28 | 29 | |
30 | + /** |
|
31 | + * @return void |
|
32 | + */ |
|
29 | 33 | public function enable(); |
30 | 34 | |
35 | + /** |
|
36 | + * @return void |
|
37 | + */ |
|
31 | 38 | public function disable(); |
32 | 39 | } |