@@ -34,20 +34,46 @@ discard block |
||
34 | 34 | { |
35 | 35 | public function getUser(): ?UserInterface; |
36 | 36 | |
37 | + /** |
|
38 | + * @return AddressInterface|null |
|
39 | + */ |
|
37 | 40 | public function getShippingAddress(): ?AddressInterface; |
38 | 41 | |
42 | + /** |
|
43 | + * @return void |
|
44 | + */ |
|
39 | 45 | public function setShippingAddress(?AddressInterface $address): void; |
40 | 46 | |
47 | + /** |
|
48 | + * @return AddressInterface|null |
|
49 | + */ |
|
41 | 50 | public function getBillingAddress(): ?AddressInterface; |
42 | 51 | |
52 | + /** |
|
53 | + * @param AddressInterface $address |
|
54 | + * |
|
55 | + * @return void |
|
56 | + */ |
|
43 | 57 | public function setBillingAddress(?AddressInterface $address): void; |
44 | 58 | |
59 | + /** |
|
60 | + * @return string |
|
61 | + */ |
|
45 | 62 | public function getCheckoutState(): ?string; |
46 | 63 | |
64 | + /** |
|
65 | + * @return void |
|
66 | + */ |
|
47 | 67 | public function setCheckoutState(?string $checkoutState): void; |
48 | 68 | |
69 | + /** |
|
70 | + * @return string |
|
71 | + */ |
|
49 | 72 | public function getPaymentState(): ?string; |
50 | 73 | |
74 | + /** |
|
75 | + * @return void |
|
76 | + */ |
|
51 | 77 | public function setPaymentState(?string $paymentState): void; |
52 | 78 | |
53 | 79 | /** |
@@ -69,28 +95,63 @@ discard block |
||
69 | 95 | |
70 | 96 | public function hasShipments(): bool; |
71 | 97 | |
98 | + /** |
|
99 | + * @return void |
|
100 | + */ |
|
72 | 101 | public function addShipment(ShipmentInterface $shipment): void; |
73 | 102 | |
103 | + /** |
|
104 | + * @return void |
|
105 | + */ |
|
74 | 106 | public function removeShipment(ShipmentInterface $shipment): void; |
75 | 107 | |
108 | + /** |
|
109 | + * @return void |
|
110 | + */ |
|
76 | 111 | public function removeShipments(): void; |
77 | 112 | |
78 | 113 | public function hasShipment(ShipmentInterface $shipment): bool; |
79 | 114 | |
115 | + /** |
|
116 | + * @return string|null |
|
117 | + */ |
|
80 | 118 | public function getCurrencyCode(): ?string; |
81 | 119 | |
120 | + /** |
|
121 | + * @return void |
|
122 | + */ |
|
82 | 123 | public function setCurrencyCode(?string $currencyCode): void; |
83 | 124 | |
125 | + /** |
|
126 | + * @return string|null |
|
127 | + */ |
|
84 | 128 | public function getLocaleCode(): ?string; |
85 | 129 | |
130 | + /** |
|
131 | + * @return void |
|
132 | + */ |
|
86 | 133 | public function setLocaleCode(?string $localeCode): void; |
87 | 134 | |
135 | + /** |
|
136 | + * @param PromotionCouponInterface $coupon |
|
137 | + * |
|
138 | + * @return void |
|
139 | + */ |
|
88 | 140 | public function setPromotionCoupon(?BaseCouponInterface $coupon): void; |
89 | 141 | |
142 | + /** |
|
143 | + * @return string |
|
144 | + */ |
|
90 | 145 | public function getShippingState(): ?string; |
91 | 146 | |
147 | + /** |
|
148 | + * @return void |
|
149 | + */ |
|
92 | 150 | public function setShippingState(?string $state): void; |
93 | 151 | |
152 | + /** |
|
153 | + * @return PaymentInterface |
|
154 | + */ |
|
94 | 155 | public function getLastPayment(?string $state = null): ?PaymentInterface; |
95 | 156 | |
96 | 157 | public function getTaxTotal(): int; |
@@ -99,12 +160,24 @@ discard block |
||
99 | 160 | |
100 | 161 | public function getOrderPromotionTotal(): int; |
101 | 162 | |
163 | + /** |
|
164 | + * @return string|null |
|
165 | + */ |
|
102 | 166 | public function getTokenValue(): ?string; |
103 | 167 | |
168 | + /** |
|
169 | + * @return void |
|
170 | + */ |
|
104 | 171 | public function setTokenValue(?string $tokenValue): void; |
105 | 172 | |
173 | + /** |
|
174 | + * @return string|null |
|
175 | + */ |
|
106 | 176 | public function getCustomerIp(): ?string; |
107 | 177 | |
178 | + /** |
|
179 | + * @return void |
|
180 | + */ |
|
108 | 181 | public function setCustomerIp(?string $customerIp): void; |
109 | 182 | |
110 | 183 | /** |
@@ -20,16 +20,28 @@ |
||
20 | 20 | |
21 | 21 | interface ProductOptionValueInterface extends ResourceInterface, CodeAwareInterface, TranslatableInterface |
22 | 22 | { |
23 | + /** |
|
24 | + * @return ProductOptionInterface|null |
|
25 | + */ |
|
23 | 26 | public function getOption(): ?ProductOptionInterface; |
24 | 27 | |
28 | + /** |
|
29 | + * @return void |
|
30 | + */ |
|
25 | 31 | public function setOption(?ProductOptionInterface $option): void; |
26 | 32 | |
27 | 33 | public function getValue(): ?string; |
28 | 34 | |
35 | + /** |
|
36 | + * @return void |
|
37 | + */ |
|
29 | 38 | public function setValue(?string $value): void; |
30 | 39 | |
31 | 40 | public function getOptionCode(): ?string; |
32 | 41 | |
42 | + /** |
|
43 | + * @return string |
|
44 | + */ |
|
33 | 45 | public function getName(): ?string; |
34 | 46 | |
35 | 47 | /** |
@@ -15,5 +15,8 @@ |
||
15 | 15 | |
16 | 16 | interface PromotionCouponAwarePromotionSubjectInterface extends PromotionSubjectInterface |
17 | 17 | { |
18 | + /** |
|
19 | + * @return PromotionCouponInterface|null |
|
20 | + */ |
|
18 | 21 | public function getPromotionCoupon(): ?PromotionCouponInterface; |
19 | 22 | } |
@@ -27,12 +27,24 @@ discard block |
||
27 | 27 | |
28 | 28 | public const STATE_CANCELLED = 'cancelled'; |
29 | 29 | |
30 | + /** |
|
31 | + * @return string |
|
32 | + */ |
|
30 | 33 | public function getState(): ?string; |
31 | 34 | |
35 | + /** |
|
36 | + * @return void |
|
37 | + */ |
|
32 | 38 | public function setState(?string $state): void; |
33 | 39 | |
40 | + /** |
|
41 | + * @return ShippingMethodInterface|null |
|
42 | + */ |
|
34 | 43 | public function getMethod(): ?ShippingMethodInterface; |
35 | 44 | |
45 | + /** |
|
46 | + * @return void |
|
47 | + */ |
|
36 | 48 | public function setMethod(?ShippingMethodInterface $method): void; |
37 | 49 | |
38 | 50 | /** |
@@ -40,14 +52,26 @@ discard block |
||
40 | 52 | */ |
41 | 53 | public function getUnits(): Collection; |
42 | 54 | |
55 | + /** |
|
56 | + * @return void |
|
57 | + */ |
|
43 | 58 | public function addUnit(ShipmentUnitInterface $unit): void; |
44 | 59 | |
60 | + /** |
|
61 | + * @return void |
|
62 | + */ |
|
45 | 63 | public function removeUnit(ShipmentUnitInterface $unit): void; |
46 | 64 | |
47 | 65 | public function hasUnit(ShipmentUnitInterface $unit): bool; |
48 | 66 | |
67 | + /** |
|
68 | + * @return string|null |
|
69 | + */ |
|
49 | 70 | public function getTracking(): ?string; |
50 | 71 | |
72 | + /** |
|
73 | + * @return void |
|
74 | + */ |
|
51 | 75 | public function setTracking(?string $tracking): void; |
52 | 76 | |
53 | 77 | public function isTracked(): bool; |
@@ -14,7 +14,6 @@ |
||
14 | 14 | namespace Sylius\Component\Core\OrderProcessing; |
15 | 15 | |
16 | 16 | use Sylius\Component\Core\Model\OrderInterface; |
17 | -use Sylius\Component\Core\Model\OrderItemUnitInterface; |
|
18 | 17 | use Sylius\Component\Core\Model\ShipmentInterface; |
19 | 18 | use Sylius\Component\Order\Model\OrderInterface as BaseOrderInterface; |
20 | 19 | use Sylius\Component\Order\Processor\OrderProcessorInterface; |
@@ -41,14 +41,14 @@ discard block |
||
41 | 41 | /** |
42 | 42 | * @param mixed $datum |
43 | 43 | * |
44 | - * @return bool False if the item was not found, true otherwise. |
|
44 | + * @return boolean|null False if the item was not found, true otherwise. |
|
45 | 45 | * |
46 | 46 | * @psalm-param T $datum |
47 | 47 | */ |
48 | 48 | public function remove($datum) { } |
49 | 49 | |
50 | 50 | /** |
51 | - * @return bool |
|
51 | + * @return boolean|null |
|
52 | 52 | */ |
53 | 53 | public function isEmpty() { } |
54 | 54 | |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | /** |
106 | 106 | * @param mixed $datum |
107 | 107 | * |
108 | - * @return bool |
|
108 | + * @return boolean|null |
|
109 | 109 | * |
110 | 110 | * @psalm-param T $datum |
111 | 111 | */ |
@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | /** |
115 | 115 | * @param int $priority |
116 | 116 | * |
117 | - * @return bool |
|
117 | + * @return boolean|null |
|
118 | 118 | */ |
119 | 119 | public function hasPriority($priority) { } |
120 | 120 |
@@ -36,7 +36,9 @@ discard block |
||
36 | 36 | * @psalm-param T $data |
37 | 37 | * @psalm-return PriorityQueue<T> |
38 | 38 | */ |
39 | - public function insert($data, $priority = 1) { } |
|
39 | + public function insert($data, $priority = 1) |
|
40 | + { |
|
41 | +} |
|
40 | 42 | |
41 | 43 | /** |
42 | 44 | * @param mixed $datum |
@@ -45,53 +47,71 @@ discard block |
||
45 | 47 | * |
46 | 48 | * @psalm-param T $datum |
47 | 49 | */ |
48 | - public function remove($datum) { } |
|
50 | + public function remove($datum) |
|
51 | + { |
|
52 | +} |
|
49 | 53 | |
50 | 54 | /** |
51 | 55 | * @return bool |
52 | 56 | */ |
53 | - public function isEmpty() { } |
|
57 | + public function isEmpty() |
|
58 | + { |
|
59 | +} |
|
54 | 60 | |
55 | 61 | /** |
56 | 62 | * @return int |
57 | 63 | */ |
58 | - public function count() { } |
|
64 | + public function count() |
|
65 | + { |
|
66 | +} |
|
59 | 67 | |
60 | 68 | /** |
61 | 69 | * @return mixed |
62 | 70 | */ |
63 | - public function top() { } |
|
71 | + public function top() |
|
72 | + { |
|
73 | +} |
|
64 | 74 | |
65 | 75 | /** |
66 | 76 | * @return mixed |
67 | 77 | */ |
68 | - public function extract() { } |
|
78 | + public function extract() |
|
79 | + { |
|
80 | +} |
|
69 | 81 | |
70 | 82 | /** |
71 | 83 | * @return SplPriorityQueue |
72 | 84 | * |
73 | 85 | * @psalm-return SplPriorityQueue<T> |
74 | 86 | */ |
75 | - public function getIterator() { } |
|
87 | + public function getIterator() |
|
88 | + { |
|
89 | +} |
|
76 | 90 | |
77 | 91 | /** |
78 | 92 | * @return string |
79 | 93 | */ |
80 | - public function serialize() { } |
|
94 | + public function serialize() |
|
95 | + { |
|
96 | +} |
|
81 | 97 | |
82 | 98 | /** |
83 | 99 | * @param string $data |
84 | 100 | * |
85 | 101 | * @return void |
86 | 102 | */ |
87 | - public function unserialize($data) { } |
|
103 | + public function unserialize($data) |
|
104 | + { |
|
105 | +} |
|
88 | 106 | |
89 | 107 | /** |
90 | 108 | * @param int $flag |
91 | 109 | * |
92 | 110 | * @return array |
93 | 111 | */ |
94 | - public function toArray($flag = self::EXTR_DATA) { } |
|
112 | + public function toArray($flag = self::EXTR_DATA) |
|
113 | + { |
|
114 | +} |
|
95 | 115 | |
96 | 116 | /** |
97 | 117 | * @param string $class |
@@ -100,7 +120,9 @@ discard block |
||
100 | 120 | * |
101 | 121 | * @psalm-return PriorityQueue<T> |
102 | 122 | */ |
103 | - public function setInternalQueueClass($class) { } |
|
123 | + public function setInternalQueueClass($class) |
|
124 | + { |
|
125 | +} |
|
104 | 126 | |
105 | 127 | /** |
106 | 128 | * @param mixed $datum |
@@ -109,17 +131,23 @@ discard block |
||
109 | 131 | * |
110 | 132 | * @psalm-param T $datum |
111 | 133 | */ |
112 | - public function contains($datum) { } |
|
134 | + public function contains($datum) |
|
135 | + { |
|
136 | +} |
|
113 | 137 | |
114 | 138 | /** |
115 | 139 | * @param int $priority |
116 | 140 | * |
117 | 141 | * @return bool |
118 | 142 | */ |
119 | - public function hasPriority($priority) { } |
|
143 | + public function hasPriority($priority) |
|
144 | + { |
|
145 | +} |
|
120 | 146 | |
121 | 147 | /** |
122 | 148 | * @return void |
123 | 149 | */ |
124 | - public function __clone() { } |
|
150 | + public function __clone() |
|
151 | + { |
|
152 | +} |
|
125 | 153 | } |
@@ -400,6 +400,7 @@ discard block |
||
400 | 400 | |
401 | 401 | /** |
402 | 402 | * @Given /^([^"]+) gives ("[^"]+%") discount on shipping to every order$/ |
403 | + * @param integer $discount |
|
403 | 404 | */ |
404 | 405 | public function itGivesPercentageDiscountOnShippingToEveryOrder(PromotionInterface $promotion, $discount) |
405 | 406 | { |
@@ -725,6 +726,7 @@ discard block |
||
725 | 726 | |
726 | 727 | /** |
727 | 728 | * @Given /^([^"]+) gives ("[^"]+%") discount on shipping to every order over ("(?:€|£|\$)[^"]+")$/ |
729 | + * @param integer $discount |
|
728 | 730 | */ |
729 | 731 | public function itGivesDiscountOnShippingToEveryOrderOver( |
730 | 732 | PromotionInterface $promotion, |
@@ -899,6 +901,9 @@ discard block |
||
899 | 901 | return $coupon; |
900 | 902 | } |
901 | 903 | |
904 | + /** |
|
905 | + * @param string $prefix |
|
906 | + */ |
|
902 | 907 | private function generateCoupons( |
903 | 908 | int $amount, |
904 | 909 | PromotionInterface $promotion, |
@@ -23,17 +23,38 @@ |
||
23 | 23 | |
24 | 24 | public function checkGenerationValidation(string $message): bool; |
25 | 25 | |
26 | + /** |
|
27 | + * @return void |
|
28 | + */ |
|
26 | 29 | public function generate(): void; |
27 | 30 | |
31 | + /** |
|
32 | + * @return void |
|
33 | + */ |
|
28 | 34 | public function specifyAmount(?int $amount): void; |
29 | 35 | |
36 | + /** |
|
37 | + * @return void |
|
38 | + */ |
|
30 | 39 | public function specifyCodeLength(?int $codeLength): void; |
31 | 40 | |
41 | + /** |
|
42 | + * @return void |
|
43 | + */ |
|
32 | 44 | public function setExpiresAt(\DateTimeInterface $date): void; |
33 | 45 | |
46 | + /** |
|
47 | + * @return void |
|
48 | + */ |
|
34 | 49 | public function setUsageLimit(int $limit): void; |
35 | 50 | |
51 | + /** |
|
52 | + * @return void |
|
53 | + */ |
|
36 | 54 | public function specifyPrefix(string $prefix): void; |
37 | 55 | |
56 | + /** |
|
57 | + * @return void |
|
58 | + */ |
|
38 | 59 | public function specifySuffix(string $suffix): void; |
39 | 60 | } |
@@ -17,37 +17,88 @@ |
||
17 | 17 | |
18 | 18 | interface CreatePageInterface extends BaseCreatePageInterface |
19 | 19 | { |
20 | + /** |
|
21 | + * @return void |
|
22 | + */ |
|
20 | 23 | public function enable(): void; |
21 | 24 | |
25 | + /** |
|
26 | + * @return void |
|
27 | + */ |
|
22 | 28 | public function disable(): void; |
23 | 29 | |
30 | + /** |
|
31 | + * @return void |
|
32 | + */ |
|
24 | 33 | public function nameIt(string $name): void; |
25 | 34 | |
35 | + /** |
|
36 | + * @return void |
|
37 | + */ |
|
26 | 38 | public function specifyCode(string $code): void; |
27 | 39 | |
40 | + /** |
|
41 | + * @return void |
|
42 | + */ |
|
28 | 43 | public function describeItAs(string $description): void; |
29 | 44 | |
45 | + /** |
|
46 | + * @return void |
|
47 | + */ |
|
30 | 48 | public function setHostname(string $hostname): void; |
31 | 49 | |
50 | + /** |
|
51 | + * @return void |
|
52 | + */ |
|
32 | 53 | public function setContactEmail(string $contactEmail): void; |
33 | 54 | |
55 | + /** |
|
56 | + * @return void |
|
57 | + */ |
|
34 | 58 | public function defineColor(string $color): void; |
35 | 59 | |
60 | + /** |
|
61 | + * @return void |
|
62 | + */ |
|
36 | 63 | public function chooseLocale(string $language): void; |
37 | 64 | |
65 | + /** |
|
66 | + * @return void |
|
67 | + */ |
|
38 | 68 | public function chooseCurrency(string $currencyCode): void; |
39 | 69 | |
70 | + /** |
|
71 | + * @return void |
|
72 | + */ |
|
40 | 73 | public function chooseDefaultTaxZone(string $taxZone): void; |
41 | 74 | |
75 | + /** |
|
76 | + * @return void |
|
77 | + */ |
|
42 | 78 | public function chooseDefaultLocale(?string $locale): void; |
43 | 79 | |
80 | + /** |
|
81 | + * @return void |
|
82 | + */ |
|
44 | 83 | public function chooseBaseCurrency(?string $currency): void; |
45 | 84 | |
85 | + /** |
|
86 | + * @return void |
|
87 | + */ |
|
46 | 88 | public function chooseTaxCalculationStrategy(string $taxCalculationStrategy): void; |
47 | 89 | |
90 | + /** |
|
91 | + * @return void |
|
92 | + */ |
|
48 | 93 | public function allowToSkipShippingStep(): void; |
49 | 94 | |
95 | + /** |
|
96 | + * @return void |
|
97 | + */ |
|
50 | 98 | public function allowToSkipPaymentStep(): void; |
51 | 99 | |
100 | + /** |
|
101 | + * @return void |
|
102 | + */ |
|
52 | 103 | public function setType(string $type): void; |
53 | 104 | } |