@@ -18,15 +18,33 @@ |
||
18 | 18 | |
19 | 19 | interface PaymentMethodTranslationInterface extends ResourceInterface, TranslationInterface |
20 | 20 | { |
21 | + /** |
|
22 | + * @return string |
|
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 |
|
33 | + */ |
|
25 | 34 | public function getDescription(): ?string; |
26 | 35 | |
36 | + /** |
|
37 | + * @return void |
|
38 | + */ |
|
27 | 39 | public function setDescription(?string $description): void; |
28 | 40 | |
41 | + /** |
|
42 | + * @return string |
|
43 | + */ |
|
29 | 44 | public function getInstructions(): ?string; |
30 | 45 | |
46 | + /** |
|
47 | + * @return void |
|
48 | + */ |
|
31 | 49 | public function setInstructions(?string $instructions): void; |
32 | 50 | } |
@@ -24,8 +24,14 @@ |
||
24 | 24 | |
25 | 25 | public function hasPayments(): bool; |
26 | 26 | |
27 | + /** |
|
28 | + * @return void |
|
29 | + */ |
|
27 | 30 | public function addPayment(PaymentInterface $payment): void; |
28 | 31 | |
32 | + /** |
|
33 | + * @return void |
|
34 | + */ |
|
29 | 35 | public function removePayment(PaymentInterface $payment): void; |
30 | 36 | |
31 | 37 | public function hasPayment(PaymentInterface $payment): bool; |
@@ -19,6 +19,7 @@ |
||
19 | 19 | { |
20 | 20 | /** |
21 | 21 | * @throws \InvalidArgumentException |
22 | + * @return void |
|
22 | 23 | */ |
23 | 24 | public function generate(ProductInterface $product): void; |
24 | 25 | } |
@@ -443,6 +443,9 @@ |
||
443 | 443 | return new ProductTranslation(); |
444 | 444 | } |
445 | 445 | |
446 | + /** |
|
447 | + * @param string $fallbackLocaleCode |
|
448 | + */ |
|
446 | 449 | private function getAttributeInDifferentLocale( |
447 | 450 | ProductAttributeValueInterface $attributeValue, |
448 | 451 | string $localeCode, |
@@ -19,12 +19,24 @@ discard block |
||
19 | 19 | |
20 | 20 | interface ProductAssociationInterface extends TimestampableInterface, ResourceInterface |
21 | 21 | { |
22 | + /** |
|
23 | + * @return ProductAssociationTypeInterface |
|
24 | + */ |
|
22 | 25 | public function getType(): ?ProductAssociationTypeInterface; |
23 | 26 | |
27 | + /** |
|
28 | + * @return void |
|
29 | + */ |
|
24 | 30 | public function setType(?ProductAssociationTypeInterface $type): void; |
25 | 31 | |
32 | + /** |
|
33 | + * @return ProductInterface |
|
34 | + */ |
|
26 | 35 | public function getOwner(): ?ProductInterface; |
27 | 36 | |
37 | + /** |
|
38 | + * @return void |
|
39 | + */ |
|
28 | 40 | public function setOwner(?ProductInterface $owner): void; |
29 | 41 | |
30 | 42 | /** |
@@ -32,11 +44,20 @@ discard block |
||
32 | 44 | */ |
33 | 45 | public function getAssociatedProducts(): Collection; |
34 | 46 | |
47 | + /** |
|
48 | + * @return void |
|
49 | + */ |
|
35 | 50 | public function addAssociatedProduct(ProductInterface $product): void; |
36 | 51 | |
52 | + /** |
|
53 | + * @return void |
|
54 | + */ |
|
37 | 55 | public function removeAssociatedProduct(ProductInterface $product): void; |
38 | 56 | |
39 | 57 | public function hasAssociatedProduct(ProductInterface $product): bool; |
40 | 58 | |
59 | + /** |
|
60 | + * @return void |
|
61 | + */ |
|
41 | 62 | public function clearAssociatedProducts(): void; |
42 | 63 | } |
@@ -27,6 +27,9 @@ |
||
27 | 27 | { |
28 | 28 | public function getName(): ?string; |
29 | 29 | |
30 | + /** |
|
31 | + * @return void |
|
32 | + */ |
|
30 | 33 | public function setName(?string $name): void; |
31 | 34 | |
32 | 35 | /** |
@@ -18,7 +18,13 @@ |
||
18 | 18 | |
19 | 19 | interface ProductAssociationTypeTranslationInterface extends ResourceInterface, TranslationInterface |
20 | 20 | { |
21 | + /** |
|
22 | + * @return string |
|
23 | + */ |
|
21 | 24 | public function getName(): ?string; |
22 | 25 | |
26 | + /** |
|
27 | + * @return void |
|
28 | + */ |
|
23 | 29 | public function setName(?string $name): void; |
24 | 30 | } |
@@ -17,7 +17,13 @@ |
||
17 | 17 | |
18 | 18 | interface ProductAttributeValueInterface extends BaseAttributeValueInterface |
19 | 19 | { |
20 | + /** |
|
21 | + * @return ProductInterface|null |
|
22 | + */ |
|
20 | 23 | public function getProduct(): ?ProductInterface; |
21 | 24 | |
25 | + /** |
|
26 | + * @return void |
|
27 | + */ |
|
22 | 28 | public function setProduct(?ProductInterface $product): void; |
23 | 29 | } |
@@ -34,18 +34,30 @@ discard block |
||
34 | 34 | { |
35 | 35 | public function getName(): ?string; |
36 | 36 | |
37 | + /** |
|
38 | + * @return void |
|
39 | + */ |
|
37 | 40 | public function setName(?string $name): void; |
38 | 41 | |
39 | 42 | public function getDescription(): ?string; |
40 | 43 | |
44 | + /** |
|
45 | + * @return void |
|
46 | + */ |
|
41 | 47 | public function setDescription(?string $description): void; |
42 | 48 | |
43 | 49 | public function getMetaKeywords(): ?string; |
44 | 50 | |
51 | + /** |
|
52 | + * @return void |
|
53 | + */ |
|
45 | 54 | public function setMetaKeywords(?string $metaKeywords): void; |
46 | 55 | |
47 | 56 | public function getMetaDescription(): ?string; |
48 | 57 | |
58 | + /** |
|
59 | + * @return void |
|
60 | + */ |
|
49 | 61 | public function setMetaDescription(?string $metaDescription): void; |
50 | 62 | |
51 | 63 | public function hasVariants(): bool; |
@@ -55,8 +67,14 @@ discard block |
||
55 | 67 | */ |
56 | 68 | public function getVariants(): Collection; |
57 | 69 | |
70 | + /** |
|
71 | + * @return void |
|
72 | + */ |
|
58 | 73 | public function addVariant(ProductVariantInterface $variant): void; |
59 | 74 | |
75 | + /** |
|
76 | + * @return void |
|
77 | + */ |
|
60 | 78 | public function removeVariant(ProductVariantInterface $variant): void; |
61 | 79 | |
62 | 80 | public function hasVariant(ProductVariantInterface $variant): bool; |
@@ -68,8 +86,14 @@ discard block |
||
68 | 86 | */ |
69 | 87 | public function getOptions(): Collection; |
70 | 88 | |
89 | + /** |
|
90 | + * @return void |
|
91 | + */ |
|
71 | 92 | public function addOption(ProductOptionInterface $option): void; |
72 | 93 | |
94 | + /** |
|
95 | + * @return void |
|
96 | + */ |
|
73 | 97 | public function removeOption(ProductOptionInterface $option): void; |
74 | 98 | |
75 | 99 | public function hasOption(ProductOptionInterface $option): bool; |
@@ -79,8 +103,14 @@ discard block |
||
79 | 103 | */ |
80 | 104 | public function getAssociations(): Collection; |
81 | 105 | |
106 | + /** |
|
107 | + * @return void |
|
108 | + */ |
|
82 | 109 | public function addAssociation(ProductAssociationInterface $association): void; |
83 | 110 | |
111 | + /** |
|
112 | + * @return void |
|
113 | + */ |
|
84 | 114 | public function removeAssociation(ProductAssociationInterface $association): void; |
85 | 115 | |
86 | 116 | public function isSimple(): bool; |