@@ -17,5 +17,8 @@ |
||
17 | 17 | |
18 | 18 | interface OrderProcessorInterface |
19 | 19 | { |
20 | + /** |
|
21 | + * @return void |
|
22 | + */ |
|
20 | 23 | public function process(OrderInterface $order): void; |
21 | 24 | } |
@@ -17,5 +17,8 @@ |
||
17 | 17 | |
18 | 18 | interface StateResolverInterface |
19 | 19 | { |
20 | + /** |
|
21 | + * @return void |
|
22 | + */ |
|
20 | 23 | public function resolve(OrderInterface $order): void; |
21 | 24 | } |
@@ -33,21 +33,45 @@ |
||
33 | 33 | */ |
34 | 34 | public function getMethod(): ?PaymentMethodInterface; |
35 | 35 | |
36 | + /** |
|
37 | + * @return void |
|
38 | + */ |
|
36 | 39 | public function setMethod(?PaymentMethodInterface $method): void; |
37 | 40 | |
41 | + /** |
|
42 | + * @return string |
|
43 | + */ |
|
38 | 44 | public function getState(): ?string; |
39 | 45 | |
46 | + /** |
|
47 | + * @return void |
|
48 | + */ |
|
40 | 49 | public function setState(string $state): void; |
41 | 50 | |
51 | + /** |
|
52 | + * @return string |
|
53 | + */ |
|
42 | 54 | public function getCurrencyCode(): ?string; |
43 | 55 | |
56 | + /** |
|
57 | + * @return void |
|
58 | + */ |
|
44 | 59 | public function setCurrencyCode(string $currencyCode): void; |
45 | 60 | |
61 | + /** |
|
62 | + * @return integer |
|
63 | + */ |
|
46 | 64 | public function getAmount(): ?int; |
47 | 65 | |
66 | + /** |
|
67 | + * @return void |
|
68 | + */ |
|
48 | 69 | public function setAmount(int $amount): void; |
49 | 70 | |
50 | 71 | public function getDetails(): array; |
51 | 72 | |
73 | + /** |
|
74 | + * @return void |
|
75 | + */ |
|
52 | 76 | public function setDetails(array $details): void; |
53 | 77 | } |
@@ -34,6 +34,7 @@ discard block |
||
34 | 34 | |
35 | 35 | /** |
36 | 36 | * {@inheritdoc} |
37 | + * @return void |
|
37 | 38 | */ |
38 | 39 | public function setName(?string $name): void; |
39 | 40 | |
@@ -44,6 +45,7 @@ discard block |
||
44 | 45 | |
45 | 46 | /** |
46 | 47 | * {@inheritdoc} |
48 | + * @return void |
|
47 | 49 | */ |
48 | 50 | public function setDescription(?string $description): void; |
49 | 51 | |
@@ -54,18 +56,34 @@ discard block |
||
54 | 56 | |
55 | 57 | /** |
56 | 58 | * {@inheritdoc} |
59 | + * @return void |
|
57 | 60 | */ |
58 | 61 | public function setInstructions(?string $instructions): void; |
59 | 62 | |
63 | + /** |
|
64 | + * @return string |
|
65 | + */ |
|
60 | 66 | public function getEnvironment(): ?string; |
61 | 67 | |
68 | + /** |
|
69 | + * @return void |
|
70 | + */ |
|
62 | 71 | public function setEnvironment(?string $environment): void; |
63 | 72 | |
73 | + /** |
|
74 | + * @return integer |
|
75 | + */ |
|
64 | 76 | public function getPosition(): ?int; |
65 | 77 | |
78 | + /** |
|
79 | + * @param integer $position |
|
80 | + * |
|
81 | + * @return void |
|
82 | + */ |
|
66 | 83 | public function setPosition(?int $position): void; |
67 | 84 | |
68 | 85 | /** |
86 | + * @param string $locale |
|
69 | 87 | * @return PaymentMethodTranslationInterface |
70 | 88 | */ |
71 | 89 | public function getTranslation(?string $locale = null): TranslationInterface; |
@@ -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 | } |