@@ -95,6 +95,7 @@ |
||
95 | 95 | |
96 | 96 | /** |
97 | 97 | * @param object $entity |
98 | + * @param string|null $manager |
|
98 | 99 | */ |
99 | 100 | private function getProperObjectManager(?string $manager, $entity): ?ObjectManager |
100 | 101 | { |
@@ -91,6 +91,7 @@ |
||
91 | 91 | |
92 | 92 | /** |
93 | 93 | * {@inheritdoc} |
94 | + * @param string $class |
|
94 | 95 | */ |
95 | 96 | public function supportsClass($class): bool |
96 | 97 | { |
@@ -116,6 +116,9 @@ |
||
116 | 116 | return $this->zoneRepository->findBy(['scope' => [$scope, Scope::ALL]]); |
117 | 117 | } |
118 | 118 | |
119 | + /** |
|
120 | + * @return AddressInterface |
|
121 | + */ |
|
119 | 122 | private function getZoneByCode(string $code): ?ZoneInterface |
120 | 123 | { |
121 | 124 | return $this->zoneRepository->findOneBy(['code' => $code]); |
@@ -29,8 +29,14 @@ |
||
29 | 29 | |
30 | 30 | public function hasProvinces(): bool; |
31 | 31 | |
32 | + /** |
|
33 | + * @return void |
|
34 | + */ |
|
32 | 35 | public function addProvince(ProvinceInterface $province): void; |
33 | 36 | |
37 | + /** |
|
38 | + * @return void |
|
39 | + */ |
|
34 | 40 | public function removeProvince(ProvinceInterface $province): void; |
35 | 41 | |
36 | 42 | public function hasProvince(ProvinceInterface $province): bool; |
@@ -34,20 +34,46 @@ discard block |
||
34 | 34 | { |
35 | 35 | public function getUser(): ?UserInterface; |
36 | 36 | |
37 | + /** |
|
38 | + * @return AddressInterface |
|
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 |
|
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 |
|
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 |
|
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 |
|
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 |
|
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 | /** |
@@ -19,6 +19,9 @@ |
||
19 | 19 | |
20 | 20 | interface PaymentMethodInterface extends BasePaymentMethodInterface, ChannelsAwareInterface |
21 | 21 | { |
22 | + /** |
|
23 | + * @return void |
|
24 | + */ |
|
22 | 25 | public function setGatewayConfig(?GatewayConfigInterface $gateway): void; |
23 | 26 | |
24 | 27 | public function getGatewayConfig(): ?GatewayConfigInterface; |
@@ -62,6 +62,7 @@ |
||
62 | 62 | |
63 | 63 | /** |
64 | 64 | * {@inheritdoc} |
65 | + * @param string $code |
|
65 | 66 | */ |
66 | 67 | public function setCode(?string $code): void |
67 | 68 | { |
@@ -22,5 +22,8 @@ |
||
22 | 22 | TimestampableInterface, |
23 | 23 | ResourceInterface |
24 | 24 | { |
25 | + /** |
|
26 | + * @return string |
|
27 | + */ |
|
25 | 28 | public function getName(): ?string; |
26 | 29 | } |
@@ -14,8 +14,8 @@ |
||
14 | 14 | namespace Sylius\Component\Taxation\Resolver; |
15 | 15 | |
16 | 16 | use Sylius\Component\Resource\Repository\RepositoryInterface; |
17 | -use Sylius\Component\Taxation\Model\TaxableInterface; |
|
18 | 17 | use Sylius\Component\Taxation\Model\TaxRateInterface; |
18 | +use Sylius\Component\Taxation\Model\TaxableInterface; |
|
19 | 19 | |
20 | 20 | class TaxRateResolver implements TaxRateResolverInterface |
21 | 21 | { |