@@ -17,12 +17,24 @@ discard block |
||
17 | 17 | |
18 | 18 | interface ChannelPricingInterface extends ResourceInterface |
19 | 19 | { |
20 | + /** |
|
21 | + * @return ProductVariantInterface |
|
22 | + */ |
|
20 | 23 | public function getProductVariant(): ?ProductVariantInterface; |
21 | 24 | |
25 | + /** |
|
26 | + * @return void |
|
27 | + */ |
|
22 | 28 | public function setProductVariant(?ProductVariantInterface $productVariant): void; |
23 | 29 | |
30 | + /** |
|
31 | + * @return integer |
|
32 | + */ |
|
24 | 33 | public function getPrice(): ?int; |
25 | 34 | |
35 | + /** |
|
36 | + * @return void |
|
37 | + */ |
|
26 | 38 | public function setPrice(?int $price): void; |
27 | 39 | |
28 | 40 | /** |
@@ -30,10 +42,19 @@ discard block |
||
30 | 42 | */ |
31 | 43 | public function getChannelCode(): ?string; |
32 | 44 | |
45 | + /** |
|
46 | + * @return void |
|
47 | + */ |
|
33 | 48 | public function setChannelCode(?string $channelCode): void; |
34 | 49 | |
50 | + /** |
|
51 | + * @return integer |
|
52 | + */ |
|
35 | 53 | public function getOriginalPrice(): ?int; |
36 | 54 | |
55 | + /** |
|
56 | + * @return void |
|
57 | + */ |
|
37 | 58 | public function setOriginalPrice(?int $originalPrice): void; |
38 | 59 | |
39 | 60 | public function isPriceReduced(): bool; |
@@ -22,16 +22,31 @@ discard block |
||
22 | 22 | */ |
23 | 23 | public function getType(): ?string; |
24 | 24 | |
25 | + /** |
|
26 | + * @return void |
|
27 | + */ |
|
25 | 28 | public function setType(?string $type): void; |
26 | 29 | |
30 | + /** |
|
31 | + * @return \SplFileInfo |
|
32 | + */ |
|
27 | 33 | public function getFile(): ?\SplFileInfo; |
28 | 34 | |
35 | + /** |
|
36 | + * @return void |
|
37 | + */ |
|
29 | 38 | public function setFile(?\SplFileInfo $file): void; |
30 | 39 | |
31 | 40 | public function hasFile(): bool; |
32 | 41 | |
42 | + /** |
|
43 | + * @return string |
|
44 | + */ |
|
33 | 45 | public function getPath(): ?string; |
34 | 46 | |
47 | + /** |
|
48 | + * @return void |
|
49 | + */ |
|
35 | 50 | public function setPath(?string $path): void; |
36 | 51 | |
37 | 52 | /** |
@@ -41,6 +56,7 @@ discard block |
||
41 | 56 | |
42 | 57 | /** |
43 | 58 | * @param object|null $owner |
59 | + * @return void |
|
44 | 60 | */ |
45 | 61 | public function setOwner($owner): void; |
46 | 62 | } |
@@ -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 | } |
@@ -20,6 +20,9 @@ |
||
20 | 20 | public const CONDITION_AND = 'and'; |
21 | 21 | public const CONDITION_OR = 'or'; |
22 | 22 | |
23 | + /** |
|
24 | + * @return void |
|
25 | + */ |
|
23 | 26 | public function restrict($expression, string $condition = self::CONDITION_AND): void; |
24 | 27 | |
25 | 28 | public function getExpressionBuilder(): ExpressionBuilderInterface; |
@@ -24,20 +24,43 @@ discard block |
||
24 | 24 | public const STATE_CANCELLED = 'cancelled'; |
25 | 25 | public const STATE_FULFILLED = 'fulfilled'; |
26 | 26 | |
27 | + /** |
|
28 | + * @return \DateTimeInterface|null |
|
29 | + */ |
|
27 | 30 | public function getCheckoutCompletedAt(): ?\DateTimeInterface; |
28 | 31 | |
32 | + /** |
|
33 | + * @param \DateTime $checkoutCompletedAt |
|
34 | + * |
|
35 | + * @return void |
|
36 | + */ |
|
29 | 37 | public function setCheckoutCompletedAt(?\DateTimeInterface $checkoutCompletedAt): void; |
30 | 38 | |
31 | 39 | public function isCheckoutCompleted(): bool; |
32 | 40 | |
41 | + /** |
|
42 | + * @return void |
|
43 | + */ |
|
33 | 44 | public function completeCheckout(): void; |
34 | 45 | |
46 | + /** |
|
47 | + * @return string|null |
|
48 | + */ |
|
35 | 49 | public function getNumber(): ?string; |
36 | 50 | |
51 | + /** |
|
52 | + * @return void |
|
53 | + */ |
|
37 | 54 | public function setNumber(?string $number): void; |
38 | 55 | |
56 | + /** |
|
57 | + * @return string|null |
|
58 | + */ |
|
39 | 59 | public function getNotes(): ?string; |
40 | 60 | |
61 | + /** |
|
62 | + * @return void |
|
63 | + */ |
|
41 | 64 | public function setNotes(?string $notes): void; |
42 | 65 | |
43 | 66 | /** |
@@ -45,18 +68,30 @@ discard block |
||
45 | 68 | */ |
46 | 69 | public function getItems(): Collection; |
47 | 70 | |
71 | + /** |
|
72 | + * @return void |
|
73 | + */ |
|
48 | 74 | public function clearItems(): void; |
49 | 75 | |
50 | 76 | public function countItems(): int; |
51 | 77 | |
78 | + /** |
|
79 | + * @return void |
|
80 | + */ |
|
52 | 81 | public function addItem(OrderItemInterface $item): void; |
53 | 82 | |
83 | + /** |
|
84 | + * @return void |
|
85 | + */ |
|
54 | 86 | public function removeItem(OrderItemInterface $item): void; |
55 | 87 | |
56 | 88 | public function hasItem(OrderItemInterface $item): bool; |
57 | 89 | |
58 | 90 | public function getItemsTotal(): int; |
59 | 91 | |
92 | + /** |
|
93 | + * @return void |
|
94 | + */ |
|
60 | 95 | public function recalculateItemsTotal(): void; |
61 | 96 | |
62 | 97 | public function getTotal(): int; |
@@ -65,6 +100,9 @@ discard block |
||
65 | 100 | |
66 | 101 | public function getState(): string; |
67 | 102 | |
103 | + /** |
|
104 | + * @return void |
|
105 | + */ |
|
68 | 106 | public function setState(string $state): void; |
69 | 107 | |
70 | 108 | public function isEmpty(): bool; |
@@ -76,5 +114,8 @@ discard block |
||
76 | 114 | |
77 | 115 | public function getAdjustmentsTotalRecursively(?string $type = null): int; |
78 | 116 | |
117 | + /** |
|
118 | + * @return void |
|
119 | + */ |
|
79 | 120 | public function removeAdjustmentsRecursively(?string $type = null): void; |
80 | 121 | } |
@@ -17,9 +17,17 @@ |
||
17 | 17 | { |
18 | 18 | public function getCreatedAt(): ?\DateTimeInterface; |
19 | 19 | |
20 | + /** |
|
21 | + * @return void |
|
22 | + */ |
|
20 | 23 | public function setCreatedAt(?\DateTimeInterface $createdAt); |
21 | 24 | |
22 | 25 | public function getUpdatedAt(): ?\DateTimeInterface; |
23 | 26 | |
27 | + /** |
|
28 | + * @param \DateTime $updatedAt |
|
29 | + * |
|
30 | + * @return void |
|
31 | + */ |
|
24 | 32 | public function setUpdatedAt(?\DateTimeInterface $updatedAt); |
25 | 33 | } |