@@ -19,19 +19,43 @@ |
||
19 | 19 | |
20 | 20 | interface ProductTranslationInterface extends SlugAwareInterface, ResourceInterface, TranslationInterface |
21 | 21 | { |
22 | + /** |
|
23 | + * @return string|null |
|
24 | + */ |
|
22 | 25 | public function getName(): ?string; |
23 | 26 | |
27 | + /** |
|
28 | + * @return void |
|
29 | + */ |
|
24 | 30 | public function setName(?string $name): void; |
25 | 31 | |
32 | + /** |
|
33 | + * @return string|null |
|
34 | + */ |
|
26 | 35 | public function getDescription(): ?string; |
27 | 36 | |
37 | + /** |
|
38 | + * @return void |
|
39 | + */ |
|
28 | 40 | public function setDescription(?string $description): void; |
29 | 41 | |
42 | + /** |
|
43 | + * @return string|null |
|
44 | + */ |
|
30 | 45 | public function getMetaKeywords(): ?string; |
31 | 46 | |
47 | + /** |
|
48 | + * @return void |
|
49 | + */ |
|
32 | 50 | public function setMetaKeywords(?string $metaKeywords): void; |
33 | 51 | |
52 | + /** |
|
53 | + * @return string|null |
|
54 | + */ |
|
34 | 55 | public function getMetaDescription(): ?string; |
35 | 56 | |
57 | + /** |
|
58 | + * @return void |
|
59 | + */ |
|
36 | 60 | public function setMetaDescription(?string $metaDescription): void; |
37 | 61 | } |
@@ -15,30 +15,64 @@ |
||
15 | 15 | |
16 | 16 | interface PromotionCouponGeneratorInstructionInterface |
17 | 17 | { |
18 | + /** |
|
19 | + * @return integer |
|
20 | + */ |
|
18 | 21 | public function getAmount(): ?int; |
19 | 22 | |
23 | + /** |
|
24 | + * @return void |
|
25 | + */ |
|
20 | 26 | public function setAmount(?int $amount): void; |
21 | 27 | |
28 | + /** |
|
29 | + * @return string|null |
|
30 | + */ |
|
22 | 31 | public function getPrefix(): ?string; |
23 | 32 | |
33 | + /** |
|
34 | + * @return void |
|
35 | + */ |
|
24 | 36 | public function setPrefix(?string $prefix): void; |
25 | 37 | |
38 | + /** |
|
39 | + * @return integer |
|
40 | + */ |
|
26 | 41 | public function getCodeLength(): ?int; |
27 | 42 | |
43 | + /** |
|
44 | + * @return void |
|
45 | + */ |
|
28 | 46 | public function setCodeLength(?int $codeLength): void; |
29 | 47 | |
48 | + /** |
|
49 | + * @return string|null |
|
50 | + */ |
|
30 | 51 | public function getSuffix(): ?string; |
31 | 52 | |
53 | + /** |
|
54 | + * @return void |
|
55 | + */ |
|
32 | 56 | public function setSuffix(?string $suffix): void; |
33 | 57 | |
58 | + /** |
|
59 | + * @return \DateTimeInterface|null |
|
60 | + */ |
|
34 | 61 | public function getExpiresAt(): ?\DateTimeInterface; |
35 | 62 | |
36 | 63 | /** |
37 | 64 | * @param \DateTimeInterface $expiresAt |
65 | + * @return void |
|
38 | 66 | */ |
39 | 67 | public function setExpiresAt(?\DateTimeInterface $expiresAt): void; |
40 | 68 | |
69 | + /** |
|
70 | + * @return integer|null |
|
71 | + */ |
|
41 | 72 | public function getUsageLimit(): ?int; |
42 | 73 | |
74 | + /** |
|
75 | + * @return void |
|
76 | + */ |
|
43 | 77 | public function setUsageLimit(int $usageLimit): void; |
44 | 78 | } |
@@ -17,9 +17,15 @@ |
||
17 | 17 | |
18 | 18 | interface ConfigurablePromotionElementInterface extends ResourceInterface |
19 | 19 | { |
20 | + /** |
|
21 | + * @return string|null |
|
22 | + */ |
|
20 | 23 | public function getType(): ?string; |
21 | 24 | |
22 | 25 | public function getConfiguration(): array; |
23 | 26 | |
27 | + /** |
|
28 | + * @return PromotionInterface|null |
|
29 | + */ |
|
24 | 30 | public function getPromotion(): ?PromotionInterface; |
25 | 31 | } |
@@ -19,16 +19,31 @@ discard block |
||
19 | 19 | |
20 | 20 | interface PromotionCouponInterface extends CodeAwareInterface, TimestampableInterface, ResourceInterface |
21 | 21 | { |
22 | + /** |
|
23 | + * @return integer|null |
|
24 | + */ |
|
22 | 25 | public function getUsageLimit(): ?int; |
23 | 26 | |
27 | + /** |
|
28 | + * @return void |
|
29 | + */ |
|
24 | 30 | public function setUsageLimit(?int $usageLimit): void; |
25 | 31 | |
26 | 32 | public function getUsed(): int; |
27 | 33 | |
34 | + /** |
|
35 | + * @return void |
|
36 | + */ |
|
28 | 37 | public function setUsed(int $used): void; |
29 | 38 | |
39 | + /** |
|
40 | + * @return void |
|
41 | + */ |
|
30 | 42 | public function incrementUsed(): void; |
31 | 43 | |
44 | + /** |
|
45 | + * @return void |
|
46 | + */ |
|
32 | 47 | public function decrementUsed(): void; |
33 | 48 | |
34 | 49 | /** |
@@ -36,12 +51,19 @@ discard block |
||
36 | 51 | */ |
37 | 52 | public function getPromotion(): ?PromotionInterface; |
38 | 53 | |
54 | + /** |
|
55 | + * @return void |
|
56 | + */ |
|
39 | 57 | public function setPromotion(?PromotionInterface $promotion): void; |
40 | 58 | |
59 | + /** |
|
60 | + * @return \DateTimeInterface|null |
|
61 | + */ |
|
41 | 62 | public function getExpiresAt(): ?\DateTimeInterface; |
42 | 63 | |
43 | 64 | /** |
44 | 65 | * @param \DateTimeInterface $expiresAt |
66 | + * @return void |
|
45 | 67 | */ |
46 | 68 | public function setExpiresAt(?\DateTimeInterface $expiresAt): void; |
47 | 69 |
@@ -18,11 +18,23 @@ |
||
18 | 18 | |
19 | 19 | interface ShippingMethodTranslationInterface extends ResourceInterface, TranslationInterface |
20 | 20 | { |
21 | + /** |
|
22 | + * @return string|null |
|
23 | + */ |
|
21 | 24 | public function getName(): ?string; |
22 | 25 | |
26 | + /** |
|
27 | + * @return void |
|
28 | + */ |
|
23 | 29 | public function setName(?string $name): void; |
24 | 30 | |
31 | + /** |
|
32 | + * @return string|null |
|
33 | + */ |
|
25 | 34 | public function getDescription(): ?string; |
26 | 35 | |
36 | + /** |
|
37 | + * @return void |
|
38 | + */ |
|
27 | 39 | public function setDescription(?string $description): void; |
28 | 40 | } |
@@ -31,18 +31,38 @@ discard block |
||
31 | 31 | |
32 | 32 | public const STORAGE_TEXT = 'text'; |
33 | 33 | |
34 | + /** |
|
35 | + * @return AttributeSubjectInterface|null |
|
36 | + */ |
|
34 | 37 | public function getSubject(): ?AttributeSubjectInterface; |
35 | 38 | |
39 | + /** |
|
40 | + * @return void |
|
41 | + */ |
|
36 | 42 | public function setSubject(?AttributeSubjectInterface $subject): void; |
37 | 43 | |
44 | + /** |
|
45 | + * @return AttributeInterface|null |
|
46 | + */ |
|
38 | 47 | public function getAttribute(): ?AttributeInterface; |
39 | 48 | |
49 | + /** |
|
50 | + * @param \Sylius\Component\Product\Model\ProductAttributeInterface|null $attribute |
|
51 | + * |
|
52 | + * @return void |
|
53 | + */ |
|
40 | 54 | public function setAttribute(?AttributeInterface $attribute): void; |
41 | 55 | |
42 | 56 | public function getValue(); |
43 | 57 | |
58 | + /** |
|
59 | + * @return void |
|
60 | + */ |
|
44 | 61 | public function setValue($value): void; |
45 | 62 | |
63 | + /** |
|
64 | + * @return string |
|
65 | + */ |
|
46 | 66 | public function getCode(): ?string; |
47 | 67 | |
48 | 68 | public function getName(): ?string; |
@@ -51,8 +71,14 @@ discard block |
||
51 | 71 | |
52 | 72 | /** |
53 | 73 | * @throws \InvalidArgumentException |
74 | + * @return string|null |
|
54 | 75 | */ |
55 | 76 | public function getLocaleCode(): ?string; |
56 | 77 | |
78 | + /** |
|
79 | + * @param string $localeCode |
|
80 | + * |
|
81 | + * @return void |
|
82 | + */ |
|
57 | 83 | public function setLocaleCode(?string $localeCode): void; |
58 | 84 | } |
@@ -25,12 +25,24 @@ discard block |
||
25 | 25 | */ |
26 | 26 | public function getOrders(): Collection; |
27 | 27 | |
28 | + /** |
|
29 | + * @return AddressInterface|null |
|
30 | + */ |
|
28 | 31 | public function getDefaultAddress(): ?AddressInterface; |
29 | 32 | |
33 | + /** |
|
34 | + * @return void |
|
35 | + */ |
|
30 | 36 | public function setDefaultAddress(?AddressInterface $defaultAddress): void; |
31 | 37 | |
38 | + /** |
|
39 | + * @return void |
|
40 | + */ |
|
32 | 41 | public function addAddress(AddressInterface $address): void; |
33 | 42 | |
43 | + /** |
|
44 | + * @return void |
|
45 | + */ |
|
34 | 46 | public function removeAddress(AddressInterface $address): void; |
35 | 47 | |
36 | 48 | public function hasAddress(AddressInterface $address): bool; |
@@ -43,12 +55,13 @@ discard block |
||
43 | 55 | public function hasUser(): bool; |
44 | 56 | |
45 | 57 | /** |
46 | - * @return ShopUserInterface|UserInterface|null |
|
58 | + * @return ShopUserInterface|null |
|
47 | 59 | */ |
48 | 60 | public function getUser(): ?UserInterface; |
49 | 61 | |
50 | 62 | /** |
51 | 63 | * @param ShopUserInterface|UserInterface|null $user |
64 | + * @return void |
|
52 | 65 | */ |
53 | 66 | public function setUser(?UserInterface $user); |
54 | 67 | } |
@@ -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 | /** |