@@ -21,9 +21,13 @@ discard block |
||
| 21 | 21 | { |
| 22 | 22 | /** |
| 23 | 23 | * @throws \InvalidArgumentException |
| 24 | + * @return void |
|
| 24 | 25 | */ |
| 25 | 26 | public function logIn(UserInterface $user): void; |
| 26 | 27 | |
| 28 | + /** |
|
| 29 | + * @return void |
|
| 30 | + */ |
|
| 27 | 31 | public function logOut(): void; |
| 28 | 32 | |
| 29 | 33 | /** |
@@ -31,5 +35,8 @@ discard block |
||
| 31 | 35 | */ |
| 32 | 36 | public function getCurrentToken(): TokenInterface; |
| 33 | 37 | |
| 38 | + /** |
|
| 39 | + * @return void |
|
| 40 | + */ |
|
| 34 | 41 | public function restoreToken(TokenInterface $token): void; |
| 35 | 42 | } |
@@ -86,6 +86,9 @@ |
||
| 86 | 86 | } |
| 87 | 87 | } |
| 88 | 88 | |
| 89 | + /** |
|
| 90 | + * @param FirewallConfig $firewall |
|
| 91 | + */ |
|
| 89 | 92 | private function isFirewallSupported(?FirewallConfig $firewall = null): bool |
| 90 | 93 | { |
| 91 | 94 | return |
@@ -17,11 +17,20 @@ |
||
| 17 | 17 | |
| 18 | 18 | interface PromotionCouponInterface extends BasePromotionCouponInterface |
| 19 | 19 | { |
| 20 | + /** |
|
| 21 | + * @return integer|null |
|
| 22 | + */ |
|
| 20 | 23 | public function getPerCustomerUsageLimit(): ?int; |
| 21 | 24 | |
| 25 | + /** |
|
| 26 | + * @return void |
|
| 27 | + */ |
|
| 22 | 28 | public function setPerCustomerUsageLimit(?int $perCustomerUsageLimit): void; |
| 23 | 29 | |
| 24 | 30 | public function isReusableFromCancelledOrders(): bool; |
| 25 | 31 | |
| 32 | + /** |
|
| 33 | + * @return void |
|
| 34 | + */ |
|
| 26 | 35 | public function setReusableFromCancelledOrders(bool $reusableFromCancelledOrders): void; |
| 27 | 36 | } |
@@ -164,6 +164,9 @@ |
||
| 164 | 164 | ; |
| 165 | 165 | } |
| 166 | 166 | |
| 167 | + /** |
|
| 168 | + * @param FactoryInterface|null $couponFactory |
|
| 169 | + */ |
|
| 167 | 170 | private static function getCouponNormalizer(?FactoryInterface $couponFactory): \Closure |
| 168 | 171 | { |
| 169 | 172 | return function (Options $options, array $couponDefinitions) use ($couponFactory): array { |
@@ -19,8 +19,14 @@ discard block |
||
| 19 | 19 | |
| 20 | 20 | interface UpdatePageInterface extends BaseUpdatePageInterface |
| 21 | 21 | { |
| 22 | + /** |
|
| 23 | + * @return void |
|
| 24 | + */ |
|
| 22 | 25 | public function disableTracking(): void; |
| 23 | 26 | |
| 27 | + /** |
|
| 28 | + * @return void |
|
| 29 | + */ |
|
| 24 | 30 | public function enableTracking(): void; |
| 25 | 31 | |
| 26 | 32 | public function isCodeDisabled(): bool; |
@@ -39,21 +45,42 @@ discard block |
||
| 39 | 45 | |
| 40 | 46 | public function getNameInLanguage(string $language): string; |
| 41 | 47 | |
| 48 | + /** |
|
| 49 | + * @return void |
|
| 50 | + */ |
|
| 42 | 51 | public function selectOption(string $optionName, string $optionValue): void; |
| 43 | 52 | |
| 44 | 53 | public function isShowInShopButtonDisabled(): bool; |
| 45 | 54 | |
| 55 | + /** |
|
| 56 | + * @return void |
|
| 57 | + */ |
|
| 46 | 58 | public function showProductInChannel(string $channel): void; |
| 47 | 59 | |
| 60 | + /** |
|
| 61 | + * @return void |
|
| 62 | + */ |
|
| 48 | 63 | public function showProductInSingleChannel(): void; |
| 49 | 64 | |
| 65 | + /** |
|
| 66 | + * @return void |
|
| 67 | + */ |
|
| 50 | 68 | public function specifyCurrentStock(int $amount): void; |
| 51 | 69 | |
| 70 | + /** |
|
| 71 | + * @return void |
|
| 72 | + */ |
|
| 52 | 73 | public function specifyPrice(int $price): void; |
| 53 | 74 | |
| 75 | + /** |
|
| 76 | + * @return void |
|
| 77 | + */ |
|
| 54 | 78 | public function disable(): void; |
| 55 | 79 | |
| 56 | 80 | public function isEnabled(): bool; |
| 57 | 81 | |
| 82 | + /** |
|
| 83 | + * @return void |
|
| 84 | + */ |
|
| 58 | 85 | public function enable(): void; |
| 59 | 86 | } |
@@ -22,24 +22,31 @@ discard block |
||
| 22 | 22 | { |
| 23 | 23 | /** |
| 24 | 24 | * @throws ElementNotFoundException |
| 25 | + * @return void |
|
| 25 | 26 | */ |
| 26 | 27 | public function addToCart(): void; |
| 27 | 28 | |
| 28 | 29 | /** |
| 29 | 30 | * @throws ElementNotFoundException |
| 31 | + * @return void |
|
| 30 | 32 | */ |
| 31 | 33 | public function addToCartWithQuantity(string $quantity): void; |
| 32 | 34 | |
| 33 | 35 | /** |
| 34 | 36 | * @throws ElementNotFoundException |
| 37 | + * @return void |
|
| 35 | 38 | */ |
| 36 | 39 | public function addToCartWithVariant(string $variant): void; |
| 37 | 40 | |
| 38 | 41 | /** |
| 39 | 42 | * @throws ElementNotFoundException |
| 43 | + * @return void |
|
| 40 | 44 | */ |
| 41 | 45 | public function addToCartWithOption(ProductOptionInterface $option, string $optionValue): void; |
| 42 | 46 | |
| 47 | + /** |
|
| 48 | + * @return null|string |
|
| 49 | + */ |
|
| 43 | 50 | public function getAttributeByName(string $name): ?string; |
| 44 | 51 | |
| 45 | 52 | public function getAttributes(): array; |
@@ -72,10 +79,19 @@ discard block |
||
| 72 | 79 | |
| 73 | 80 | public function countReviews(): int; |
| 74 | 81 | |
| 82 | + /** |
|
| 83 | + * @return void |
|
| 84 | + */ |
|
| 75 | 85 | public function selectOption(string $optionCode, string $optionValue): void; |
| 76 | 86 | |
| 87 | + /** |
|
| 88 | + * @return void |
|
| 89 | + */ |
|
| 77 | 90 | public function selectVariant(string $variantName): void; |
| 78 | 91 | |
| 92 | + /** |
|
| 93 | + * @return void |
|
| 94 | + */ |
|
| 79 | 95 | public function visit(string $url): void; |
| 80 | 96 | |
| 81 | 97 | public function getVariantsNames(): array; |
@@ -28,8 +28,14 @@ discard block |
||
| 28 | 28 | ToggleableInterface, |
| 29 | 29 | TranslatableInterface |
| 30 | 30 | { |
| 31 | + /** |
|
| 32 | + * @return string |
|
| 33 | + */ |
|
| 31 | 34 | public function getName(): ?string; |
| 32 | 35 | |
| 36 | + /** |
|
| 37 | + * @return void |
|
| 38 | + */ |
|
| 33 | 39 | public function setName(?string $name): void; |
| 34 | 40 | |
| 35 | 41 | public function getDescriptor(): string; |
@@ -41,21 +47,42 @@ discard block |
||
| 41 | 47 | */ |
| 42 | 48 | public function getOptionValues(): Collection; |
| 43 | 49 | |
| 50 | + /** |
|
| 51 | + * @return void |
|
| 52 | + */ |
|
| 44 | 53 | public function addOptionValue(ProductOptionValueInterface $optionValue): void; |
| 45 | 54 | |
| 55 | + /** |
|
| 56 | + * @return void |
|
| 57 | + */ |
|
| 46 | 58 | public function removeOptionValue(ProductOptionValueInterface $optionValue): void; |
| 47 | 59 | |
| 48 | 60 | public function hasOptionValue(ProductOptionValueInterface $optionValue): bool; |
| 49 | 61 | |
| 62 | + /** |
|
| 63 | + * @return ProductInterface |
|
| 64 | + */ |
|
| 50 | 65 | public function getProduct(): ?ProductInterface; |
| 51 | 66 | |
| 67 | + /** |
|
| 68 | + * @return void |
|
| 69 | + */ |
|
| 52 | 70 | public function setProduct(?ProductInterface $product): void; |
| 53 | 71 | |
| 72 | + /** |
|
| 73 | + * @return integer |
|
| 74 | + */ |
|
| 54 | 75 | public function getPosition(): ?int; |
| 55 | 76 | |
| 77 | + /** |
|
| 78 | + * @param integer $position |
|
| 79 | + * |
|
| 80 | + * @return void |
|
| 81 | + */ |
|
| 56 | 82 | public function setPosition(?int $position): void; |
| 57 | 83 | |
| 58 | 84 | /** |
| 85 | + * @param string $locale |
|
| 59 | 86 | * @return ProductVariantTranslationInterface |
| 60 | 87 | */ |
| 61 | 88 | public function getTranslation(?string $locale = null): TranslationInterface; |
@@ -20,10 +20,13 @@ discard block |
||
| 20 | 20 | |
| 21 | 21 | interface CountryInterface extends ToggleableInterface, ResourceInterface, CodeAwareInterface |
| 22 | 22 | { |
| 23 | + /** |
|
| 24 | + * @return string |
|
| 25 | + */ |
|
| 23 | 26 | public function getName(?string $locale = null): ?string; |
| 24 | 27 | |
| 25 | 28 | /** |
| 26 | - * @return Collection|ProvinceInterface[] |
|
| 29 | + * @return Collection |
|
| 27 | 30 | * |
| 28 | 31 | * @psalm-return Collection<array-key, ProvinceInterface> |
| 29 | 32 | */ |
@@ -31,8 +34,14 @@ discard block |
||
| 31 | 34 | |
| 32 | 35 | public function hasProvinces(): bool; |
| 33 | 36 | |
| 37 | + /** |
|
| 38 | + * @return void |
|
| 39 | + */ |
|
| 34 | 40 | public function addProvince(ProvinceInterface $province): void; |
| 35 | 41 | |
| 42 | + /** |
|
| 43 | + * @return void |
|
| 44 | + */ |
|
| 36 | 45 | public function removeProvince(ProvinceInterface $province): void; |
| 37 | 46 | |
| 38 | 47 | public function hasProvince(ProvinceInterface $province): bool; |
@@ -22,5 +22,8 @@ |
||
| 22 | 22 | TimestampableInterface, |
| 23 | 23 | ResourceInterface |
| 24 | 24 | { |
| 25 | + /** |
|
| 26 | + * @return null|string |
|
| 27 | + */ |
|
| 25 | 28 | public function getName(): ?string; |
| 26 | 29 | } |