@@ -19,18 +19,31 @@ discard block |
||
19 | 19 | |
20 | 20 | interface UpdatePageInterface extends BaseUpdatePageInterface |
21 | 21 | { |
22 | + /** |
|
23 | + * @return void |
|
24 | + */ |
|
22 | 25 | public function describeItAs(string $description, string $languageCode): void; |
23 | 26 | |
27 | + /** |
|
28 | + * @return void |
|
29 | + */ |
|
24 | 30 | public function chooseParent(TaxonInterface $taxon): void; |
25 | 31 | |
26 | 32 | public function isCodeDisabled(): bool; |
27 | 33 | |
34 | + /** |
|
35 | + * @return void |
|
36 | + */ |
|
28 | 37 | public function nameIt(string $name, string $languageCode): void; |
29 | 38 | |
39 | + /** |
|
40 | + * @return void |
|
41 | + */ |
|
30 | 42 | public function specifySlug(string $slug, string $languageCode): void; |
31 | 43 | |
32 | 44 | /** |
33 | 45 | * @param string $type |
46 | + * @return void |
|
34 | 47 | */ |
35 | 48 | public function attachImage(string $path, string $type = null): void; |
36 | 49 | |
@@ -38,16 +51,31 @@ discard block |
||
38 | 51 | |
39 | 52 | public function isSlugReadonly(string $languageCode = 'en_US'): bool; |
40 | 53 | |
54 | + /** |
|
55 | + * @return void |
|
56 | + */ |
|
41 | 57 | public function removeImageWithType(string $type): void; |
42 | 58 | |
59 | + /** |
|
60 | + * @return void |
|
61 | + */ |
|
43 | 62 | public function removeFirstImage(): void; |
44 | 63 | |
64 | + /** |
|
65 | + * @return void |
|
66 | + */ |
|
45 | 67 | public function enableSlugModification(string $languageCode = 'en_US'): void; |
46 | 68 | |
47 | 69 | public function countImages(): int; |
48 | 70 | |
71 | + /** |
|
72 | + * @return void |
|
73 | + */ |
|
49 | 74 | public function changeImageWithType(string $type, string $path): void; |
50 | 75 | |
76 | + /** |
|
77 | + * @return void |
|
78 | + */ |
|
51 | 79 | public function modifyFirstImageType(string $type): void; |
52 | 80 | |
53 | 81 | public function getParent(): string; |
@@ -64,10 +92,19 @@ discard block |
||
64 | 92 | */ |
65 | 93 | public function getValidationMessageForImageAtPlace(int $place): string; |
66 | 94 | |
95 | + /** |
|
96 | + * @return void |
|
97 | + */ |
|
67 | 98 | public function activateLanguageTab(string $locale): void; |
68 | 99 | |
100 | + /** |
|
101 | + * @return void |
|
102 | + */ |
|
69 | 103 | public function enable(): void; |
70 | 104 | |
105 | + /** |
|
106 | + * @return void |
|
107 | + */ |
|
71 | 108 | public function disable(): void; |
72 | 109 | |
73 | 110 | public function isEnabled(): bool; |
@@ -88,6 +88,9 @@ |
||
88 | 88 | ); |
89 | 89 | } |
90 | 90 | |
91 | + /** |
|
92 | + * @return ChannelInterface |
|
93 | + */ |
|
91 | 94 | private function findChannelByCodeOrFindFirst(?string $channelCode): ?ChannelInterface |
92 | 95 | { |
93 | 96 | if (null !== $channelCode) { |
@@ -16,7 +16,13 @@ |
||
16 | 16 | /** @experimental */ |
17 | 17 | interface OrderTokenValueAwareInterface extends CommandAwareDataTransformerInterface |
18 | 18 | { |
19 | + /** |
|
20 | + * @return string|null |
|
21 | + */ |
|
19 | 22 | public function getOrderTokenValue(): ?string; |
20 | 23 | |
24 | + /** |
|
25 | + * @return void |
|
26 | + */ |
|
21 | 27 | public function setOrderTokenValue(?string $orderTokenValue): void; |
22 | 28 | } |
@@ -9,5 +9,8 @@ |
||
9 | 9 | { |
10 | 10 | public function getShopUserId(); |
11 | 11 | |
12 | + /** |
|
13 | + * @return void |
|
14 | + */ |
|
12 | 15 | public function setShopUserId($shopUserId): void; |
13 | 16 | } |
@@ -16,8 +16,14 @@ |
||
16 | 16 | /** @experimental */ |
17 | 17 | interface SubresourceIdAwareInterface extends CommandAwareDataTransformerInterface |
18 | 18 | { |
19 | + /** |
|
20 | + * @return string |
|
21 | + */ |
|
19 | 22 | public function getSubresourceId(): ?string; |
20 | 23 | |
24 | + /** |
|
25 | + * @return void |
|
26 | + */ |
|
21 | 27 | public function setSubresourceId(?string $subresourceId): void; |
22 | 28 | |
23 | 29 | public function getSubresourceIdAttributeKey(): string; |
@@ -18,5 +18,8 @@ |
||
18 | 18 | /** @experimental */ |
19 | 19 | interface UserContextInterface |
20 | 20 | { |
21 | + /** |
|
22 | + * @return null|UserInterface |
|
23 | + */ |
|
21 | 24 | public function getUser(): ?UserInterface; |
22 | 25 | } |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | public static function findOneBy(RepositoryInterface $repository, string $field, array $criteria = []): \Closure |
124 | 124 | { |
125 | 125 | return |
126 | - /** @param mixed $previousValue */ |
|
126 | + /** @param string $previousValue */ |
|
127 | 127 | function (Options $options, $previousValue) use ($repository, $field, $criteria): ?object { |
128 | 128 | if (null === $previousValue || [] === $previousValue) { |
129 | 129 | return null; |
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | public static function getOneBy(RepositoryInterface $repository, string $field, array $criteria = []): \Closure |
142 | 142 | { |
143 | 143 | return |
144 | - /** @param mixed $previousValue */ |
|
144 | + /** @param string $previousValue */ |
|
145 | 145 | function (Options $options, $previousValue) use ($repository, $field, $criteria): ?object { |
146 | 146 | if (null === $previousValue || [] === $previousValue) { |
147 | 147 | return null; |
@@ -15,6 +15,9 @@ |
||
15 | 15 | |
16 | 16 | class ChannelNotFoundException extends \RuntimeException |
17 | 17 | { |
18 | + /** |
|
19 | + * @param \UnexpectedValueException $previousException |
|
20 | + */ |
|
18 | 21 | public function __construct($messageOrPreviousException = null, ?\Throwable $previousException = null) |
19 | 22 | { |
20 | 23 | $message = 'Channel could not be found! Tip: You can use the Web Debug Toolbar to switch between channels in development.'; |
@@ -27,52 +27,115 @@ discard block |
||
27 | 27 | CurrenciesAwareInterface, |
28 | 28 | LocalesAwareInterface |
29 | 29 | { |
30 | + /** |
|
31 | + * @return CurrencyInterface |
|
32 | + */ |
|
30 | 33 | public function getBaseCurrency(): ?CurrencyInterface; |
31 | 34 | |
35 | + /** |
|
36 | + * @return void |
|
37 | + */ |
|
32 | 38 | public function setBaseCurrency(?CurrencyInterface $currency): void; |
33 | 39 | |
40 | + /** |
|
41 | + * @return LocaleInterface |
|
42 | + */ |
|
34 | 43 | public function getDefaultLocale(): ?LocaleInterface; |
35 | 44 | |
45 | + /** |
|
46 | + * @return void |
|
47 | + */ |
|
36 | 48 | public function setDefaultLocale(?LocaleInterface $locale): void; |
37 | 49 | |
50 | + /** |
|
51 | + * @return ZoneInterface |
|
52 | + */ |
|
38 | 53 | public function getDefaultTaxZone(): ?ZoneInterface; |
39 | 54 | |
55 | + /** |
|
56 | + * @return void |
|
57 | + */ |
|
40 | 58 | public function setDefaultTaxZone(?ZoneInterface $defaultTaxZone): void; |
41 | 59 | |
60 | + /** |
|
61 | + * @return string |
|
62 | + */ |
|
42 | 63 | public function getTaxCalculationStrategy(): ?string; |
43 | 64 | |
65 | + /** |
|
66 | + * @return void |
|
67 | + */ |
|
44 | 68 | public function setTaxCalculationStrategy(?string $taxCalculationStrategy): void; |
45 | 69 | |
70 | + /** |
|
71 | + * @return string |
|
72 | + */ |
|
46 | 73 | public function getThemeName(): ?string; |
47 | 74 | |
75 | + /** |
|
76 | + * @return void |
|
77 | + */ |
|
48 | 78 | public function setThemeName(?string $themeName): void; |
49 | 79 | |
80 | + /** |
|
81 | + * @return string |
|
82 | + */ |
|
50 | 83 | public function getContactEmail(): ?string; |
51 | 84 | |
85 | + /** |
|
86 | + * @return void |
|
87 | + */ |
|
52 | 88 | public function setContactEmail(?string $contactEmail): void; |
53 | 89 | |
90 | + /** |
|
91 | + * @return string|null |
|
92 | + */ |
|
54 | 93 | public function getContactPhoneNumber(): ?string; |
55 | 94 | |
95 | + /** |
|
96 | + * @return void |
|
97 | + */ |
|
56 | 98 | public function setContactPhoneNumber(?string $contactPhoneNumber): void; |
57 | 99 | |
58 | 100 | public function isSkippingShippingStepAllowed(): bool; |
59 | 101 | |
102 | + /** |
|
103 | + * @return void |
|
104 | + */ |
|
60 | 105 | public function setSkippingShippingStepAllowed(bool $skippingShippingStepAllowed): void; |
61 | 106 | |
62 | 107 | public function isSkippingPaymentStepAllowed(): bool; |
63 | 108 | |
109 | + /** |
|
110 | + * @return void |
|
111 | + */ |
|
64 | 112 | public function setSkippingPaymentStepAllowed(bool $skippingPaymentStepAllowed): void; |
65 | 113 | |
66 | 114 | public function isAccountVerificationRequired(): bool; |
67 | 115 | |
116 | + /** |
|
117 | + * @return void |
|
118 | + */ |
|
68 | 119 | public function setAccountVerificationRequired(bool $accountVerificationRequired): void; |
69 | 120 | |
121 | + /** |
|
122 | + * @return ShopBillingDataInterface|null |
|
123 | + */ |
|
70 | 124 | public function getShopBillingData(): ?ShopBillingDataInterface; |
71 | 125 | |
126 | + /** |
|
127 | + * @return void |
|
128 | + */ |
|
72 | 129 | public function setShopBillingData(ShopBillingDataInterface $shopBillingData): void; |
73 | 130 | |
131 | + /** |
|
132 | + * @return TaxonInterface|null |
|
133 | + */ |
|
74 | 134 | public function getMenuTaxon(): ?TaxonInterface; |
75 | 135 | |
136 | + /** |
|
137 | + * @return void |
|
138 | + */ |
|
76 | 139 | public function setMenuTaxon(?TaxonInterface $menuTaxon): void; |
77 | 140 | |
78 | 141 | /** |
@@ -82,8 +145,14 @@ discard block |
||
82 | 145 | */ |
83 | 146 | public function getCountries(): Collection; |
84 | 147 | |
148 | + /** |
|
149 | + * @return void |
|
150 | + */ |
|
85 | 151 | public function addCountry(CountryInterface $country): void; |
86 | 152 | |
153 | + /** |
|
154 | + * @return void |
|
155 | + */ |
|
87 | 156 | public function removeCountry(CountryInterface $country): void; |
88 | 157 | |
89 | 158 | public function hasCountry(CountryInterface $country): bool; |