@@ -19,42 +19,90 @@ |
||
| 19 | 19 | |
| 20 | 20 | interface CreateSimpleProductPageInterface extends BaseCreatePageInterface |
| 21 | 21 | { |
| 22 | + /** |
|
| 23 | + * @return void |
|
| 24 | + */ |
|
| 22 | 25 | public function specifyPrice(string $channelName, string $price): void; |
| 23 | 26 | |
| 27 | + /** |
|
| 28 | + * @return void |
|
| 29 | + */ |
|
| 24 | 30 | public function specifyOriginalPrice(string $channelName, int $originalPrice): void; |
| 25 | 31 | |
| 32 | + /** |
|
| 33 | + * @return void |
|
| 34 | + */ |
|
| 26 | 35 | public function choosePricingCalculator(string $name): void; |
| 27 | 36 | |
| 37 | + /** |
|
| 38 | + * @return void |
|
| 39 | + */ |
|
| 28 | 40 | public function checkChannel(string $channelName): void; |
| 29 | 41 | |
| 42 | + /** |
|
| 43 | + * @return void |
|
| 44 | + */ |
|
| 30 | 45 | public function specifyCode(string $code): void; |
| 31 | 46 | |
| 47 | + /** |
|
| 48 | + * @return void |
|
| 49 | + */ |
|
| 32 | 50 | public function nameItIn(string $name, string $localeCode): void; |
| 33 | 51 | |
| 52 | + /** |
|
| 53 | + * @return void |
|
| 54 | + */ |
|
| 34 | 55 | public function specifySlugIn(?string $slug, string $locale): void; |
| 35 | 56 | |
| 57 | + /** |
|
| 58 | + * @return void |
|
| 59 | + */ |
|
| 36 | 60 | public function addAttribute(string $attributeName, string $value, string $localeCode): void; |
| 37 | 61 | |
| 38 | 62 | public function getAttributeValidationErrors(string $attributeName, string $localeCode): string; |
| 39 | 63 | |
| 64 | + /** |
|
| 65 | + * @return void |
|
| 66 | + */ |
|
| 40 | 67 | public function removeAttribute(string $attributeName, string $localeCode): void; |
| 41 | 68 | |
| 42 | 69 | public function isMainTaxonChosen(string $taxonName): bool; |
| 43 | 70 | |
| 71 | + /** |
|
| 72 | + * @return void |
|
| 73 | + */ |
|
| 44 | 74 | public function selectMainTaxon(TaxonInterface $taxon): void; |
| 45 | 75 | |
| 76 | + /** |
|
| 77 | + * @param string $type |
|
| 78 | + * |
|
| 79 | + * @return void |
|
| 80 | + */ |
|
| 46 | 81 | public function attachImage(string $path, ?string $type = null): void; |
| 47 | 82 | |
| 48 | 83 | /** |
| 49 | 84 | * @param string[] $productsNames |
| 85 | + * @return void |
|
| 50 | 86 | */ |
| 51 | 87 | public function associateProducts(ProductAssociationTypeInterface $productAssociationType, array $productsNames): void; |
| 52 | 88 | |
| 89 | + /** |
|
| 90 | + * @return void |
|
| 91 | + */ |
|
| 53 | 92 | public function removeAssociatedProduct(string $productName, ProductAssociationTypeInterface $productAssociationType): void; |
| 54 | 93 | |
| 94 | + /** |
|
| 95 | + * @return void |
|
| 96 | + */ |
|
| 55 | 97 | public function activateLanguageTab(string $locale): void; |
| 56 | 98 | |
| 99 | + /** |
|
| 100 | + * @return void |
|
| 101 | + */ |
|
| 57 | 102 | public function selectShippingCategory(string $shippingCategoryName): void; |
| 58 | 103 | |
| 104 | + /** |
|
| 105 | + * @return void |
|
| 106 | + */ |
|
| 59 | 107 | public function setShippingRequired(bool $isShippingRequired): void; |
| 60 | 108 | } |
@@ -25,43 +25,94 @@ |
||
| 25 | 25 | CurrenciesAwareInterface, |
| 26 | 26 | LocalesAwareInterface |
| 27 | 27 | { |
| 28 | + /** |
|
| 29 | + * @return CurrencyInterface |
|
| 30 | + */ |
|
| 28 | 31 | public function getBaseCurrency(): ?CurrencyInterface; |
| 29 | 32 | |
| 33 | + /** |
|
| 34 | + * @return void |
|
| 35 | + */ |
|
| 30 | 36 | public function setBaseCurrency(?CurrencyInterface $currency): void; |
| 31 | 37 | |
| 38 | + /** |
|
| 39 | + * @return LocaleInterface |
|
| 40 | + */ |
|
| 32 | 41 | public function getDefaultLocale(): ?LocaleInterface; |
| 33 | 42 | |
| 43 | + /** |
|
| 44 | + * @return void |
|
| 45 | + */ |
|
| 34 | 46 | public function setDefaultLocale(?LocaleInterface $locale): void; |
| 35 | 47 | |
| 48 | + /** |
|
| 49 | + * @return ZoneInterface |
|
| 50 | + */ |
|
| 36 | 51 | public function getDefaultTaxZone(): ?ZoneInterface; |
| 37 | 52 | |
| 53 | + /** |
|
| 54 | + * @return void |
|
| 55 | + */ |
|
| 38 | 56 | public function setDefaultTaxZone(?ZoneInterface $defaultTaxZone): void; |
| 39 | 57 | |
| 58 | + /** |
|
| 59 | + * @return string |
|
| 60 | + */ |
|
| 40 | 61 | public function getTaxCalculationStrategy(): ?string; |
| 41 | 62 | |
| 63 | + /** |
|
| 64 | + * @return void |
|
| 65 | + */ |
|
| 42 | 66 | public function setTaxCalculationStrategy(?string $taxCalculationStrategy): void; |
| 43 | 67 | |
| 68 | + /** |
|
| 69 | + * @return string |
|
| 70 | + */ |
|
| 44 | 71 | public function getThemeName(): ?string; |
| 45 | 72 | |
| 73 | + /** |
|
| 74 | + * @return void |
|
| 75 | + */ |
|
| 46 | 76 | public function setThemeName(?string $themeName): void; |
| 47 | 77 | |
| 78 | + /** |
|
| 79 | + * @return string |
|
| 80 | + */ |
|
| 48 | 81 | public function getContactEmail(): ?string; |
| 49 | 82 | |
| 83 | + /** |
|
| 84 | + * @return void |
|
| 85 | + */ |
|
| 50 | 86 | public function setContactEmail(?string $contactEmail): void; |
| 51 | 87 | |
| 52 | 88 | public function isSkippingShippingStepAllowed(): bool; |
| 53 | 89 | |
| 90 | + /** |
|
| 91 | + * @return void |
|
| 92 | + */ |
|
| 54 | 93 | public function setSkippingShippingStepAllowed(bool $skippingShippingStepAllowed): void; |
| 55 | 94 | |
| 56 | 95 | public function isSkippingPaymentStepAllowed(): bool; |
| 57 | 96 | |
| 97 | + /** |
|
| 98 | + * @return void |
|
| 99 | + */ |
|
| 58 | 100 | public function setSkippingPaymentStepAllowed(bool $skippingPaymentStepAllowed): void; |
| 59 | 101 | |
| 60 | 102 | public function isAccountVerificationRequired(): bool; |
| 61 | 103 | |
| 104 | + /** |
|
| 105 | + * @return void |
|
| 106 | + */ |
|
| 62 | 107 | public function setAccountVerificationRequired(bool $accountVerificationRequired): void; |
| 63 | 108 | |
| 109 | + /** |
|
| 110 | + * @return ShopBillingDataInterface|null |
|
| 111 | + */ |
|
| 64 | 112 | public function getShopBillingData(): ?ShopBillingDataInterface; |
| 65 | 113 | |
| 114 | + /** |
|
| 115 | + * @return void |
|
| 116 | + */ |
|
| 66 | 117 | public function setShopBillingData(ShopBillingDataInterface $shopBillingData): void; |
| 67 | 118 | } |
@@ -22,18 +22,21 @@ |
||
| 22 | 22 | /** |
| 23 | 23 | * @throws UnsupportedDriverActionException |
| 24 | 24 | * @throws DriverException |
| 25 | + * @return void |
|
| 25 | 26 | */ |
| 26 | 27 | public function authorize(); |
| 27 | 28 | |
| 28 | 29 | /** |
| 29 | 30 | * @throws UnsupportedDriverActionException |
| 30 | 31 | * @throws DriverException |
| 32 | + * @return void |
|
| 31 | 33 | */ |
| 32 | 34 | public function pay(); |
| 33 | 35 | |
| 34 | 36 | /** |
| 35 | 37 | * @throws UnsupportedDriverActionException |
| 36 | 38 | * @throws DriverException |
| 39 | + * @return void |
|
| 37 | 40 | */ |
| 38 | 41 | public function cancel(); |
| 39 | 42 | } |
@@ -947,6 +947,9 @@ |
||
| 947 | 947 | $this->objectManager->flush(); |
| 948 | 948 | } |
| 949 | 949 | |
| 950 | + /** |
|
| 951 | + * @param ProductVariantInterface $variant |
|
| 952 | + */ |
|
| 950 | 953 | private function createProductImage( |
| 951 | 954 | ProductInterface $product, |
| 952 | 955 | string $imagePath, |
@@ -17,11 +17,22 @@ |
||
| 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 | + * @param integer $perCustomerUsageLimit |
|
| 27 | + * |
|
| 28 | + * @return void |
|
| 29 | + */ |
|
| 22 | 30 | public function setPerCustomerUsageLimit(?int $perCustomerUsageLimit): void; |
| 23 | 31 | |
| 24 | 32 | public function isReusableFromCancelledOrders(): bool; |
| 25 | 33 | |
| 34 | + /** |
|
| 35 | + * @return void |
|
| 36 | + */ |
|
| 26 | 37 | public function setReusableFromCancelledOrders(bool $reusableFromCancelledOrders): void; |
| 27 | 38 | } |
@@ -37,6 +37,7 @@ |
||
| 37 | 37 | * @Transform /^taxon with "([^"]+)" name/ |
| 38 | 38 | * @Transform /^taxon "([^"]+)"$/ |
| 39 | 39 | * @Transform :taxon |
| 40 | + * @param string $name |
|
| 40 | 41 | */ |
| 41 | 42 | public function getTaxonByName($name) |
| 42 | 43 | { |
@@ -17,26 +17,50 @@ discard block |
||
| 17 | 17 | |
| 18 | 18 | interface UpdatePageInterface extends BaseUpdatePageInterface |
| 19 | 19 | { |
| 20 | + /** |
|
| 21 | + * @return void |
|
| 22 | + */ |
|
| 20 | 23 | public function setPriority(?int $priority): void; |
| 21 | 24 | |
| 22 | 25 | public function getPriority(): int; |
| 23 | 26 | |
| 27 | + /** |
|
| 28 | + * @return void |
|
| 29 | + */ |
|
| 24 | 30 | public function nameIt(string $name): void; |
| 25 | 31 | |
| 26 | 32 | public function checkChannelsState(string $channelName): bool; |
| 27 | 33 | |
| 28 | 34 | public function isCodeDisabled(): bool; |
| 29 | 35 | |
| 36 | + /** |
|
| 37 | + * @return void |
|
| 38 | + */ |
|
| 30 | 39 | public function fillUsageLimit(string $limit): void; |
| 31 | 40 | |
| 41 | + /** |
|
| 42 | + * @return void |
|
| 43 | + */ |
|
| 32 | 44 | public function makeExclusive(): void; |
| 33 | 45 | |
| 46 | + /** |
|
| 47 | + * @return void |
|
| 48 | + */ |
|
| 34 | 49 | public function checkCouponBased(): void; |
| 35 | 50 | |
| 51 | + /** |
|
| 52 | + * @return void |
|
| 53 | + */ |
|
| 36 | 54 | public function checkChannel(string $name): void; |
| 37 | 55 | |
| 56 | + /** |
|
| 57 | + * @return void |
|
| 58 | + */ |
|
| 38 | 59 | public function setStartsAt(\DateTimeInterface $dateTime): void; |
| 39 | 60 | |
| 61 | + /** |
|
| 62 | + * @return void |
|
| 63 | + */ |
|
| 40 | 64 | public function setEndsAt(\DateTimeInterface $dateTime): void; |
| 41 | 65 | |
| 42 | 66 | public function hasStartsAt(\DateTimeInterface $dateTime): bool; |
@@ -45,6 +69,9 @@ discard block |
||
| 45 | 69 | |
| 46 | 70 | public function isCouponManagementAvailable(): bool; |
| 47 | 71 | |
| 72 | + /** |
|
| 73 | + * @return void |
|
| 74 | + */ |
|
| 48 | 75 | public function manageCoupons(): void; |
| 49 | 76 | |
| 50 | 77 | public function hasAnyRule(): bool; |
@@ -17,9 +17,15 @@ |
||
| 17 | 17 | |
| 18 | 18 | interface IndexPageInterface extends CrudIndexPageInterface |
| 19 | 19 | { |
| 20 | + /** |
|
| 21 | + * @return void |
|
| 22 | + */ |
|
| 20 | 23 | public function filterByTaxon(string $taxonName): void; |
| 21 | 24 | |
| 22 | 25 | public function hasProductAccessibleImage(string $productCode): bool; |
| 23 | 26 | |
| 27 | + /** |
|
| 28 | + * @return void |
|
| 29 | + */ |
|
| 24 | 30 | public function showProductPage(string $productName): void; |
| 25 | 31 | } |
@@ -30,24 +30,66 @@ discard block |
||
| 30 | 30 | VersionedInterface, |
| 31 | 31 | ProductImagesAwareInterface |
| 32 | 32 | { |
| 33 | + /** |
|
| 34 | + * @return double |
|
| 35 | + */ |
|
| 33 | 36 | public function getWeight(): ?float; |
| 34 | 37 | |
| 38 | + /** |
|
| 39 | + * @param double $weight |
|
| 40 | + * |
|
| 41 | + * @return void |
|
| 42 | + */ |
|
| 35 | 43 | public function setWeight(?float $weight): void; |
| 36 | 44 | |
| 45 | + /** |
|
| 46 | + * @return double |
|
| 47 | + */ |
|
| 37 | 48 | public function getWidth(): ?float; |
| 38 | 49 | |
| 50 | + /** |
|
| 51 | + * @param double $width |
|
| 52 | + * |
|
| 53 | + * @return void |
|
| 54 | + */ |
|
| 39 | 55 | public function setWidth(?float $width): void; |
| 40 | 56 | |
| 57 | + /** |
|
| 58 | + * @return double |
|
| 59 | + */ |
|
| 41 | 60 | public function getHeight(): ?float; |
| 42 | 61 | |
| 62 | + /** |
|
| 63 | + * @param double $height |
|
| 64 | + * |
|
| 65 | + * @return void |
|
| 66 | + */ |
|
| 43 | 67 | public function setHeight(?float $height): void; |
| 44 | 68 | |
| 69 | + /** |
|
| 70 | + * @return double |
|
| 71 | + */ |
|
| 45 | 72 | public function getDepth(): ?float; |
| 46 | 73 | |
| 74 | + /** |
|
| 75 | + * @param double $depth |
|
| 76 | + * |
|
| 77 | + * @return void |
|
| 78 | + */ |
|
| 47 | 79 | public function setDepth(?float $depth): void; |
| 48 | 80 | |
| 81 | + /** |
|
| 82 | + * @param TaxCategoryInterface $category |
|
| 83 | + * |
|
| 84 | + * @return void |
|
| 85 | + */ |
|
| 49 | 86 | public function setTaxCategory(?TaxCategoryInterface $category): void; |
| 50 | 87 | |
| 88 | + /** |
|
| 89 | + * @param ShippingCategoryInterface $shippingCategory |
|
| 90 | + * |
|
| 91 | + * @return void |
|
| 92 | + */ |
|
| 51 | 93 | public function setShippingCategory(?ShippingCategoryInterface $shippingCategory): void; |
| 52 | 94 | |
| 53 | 95 | /** |
@@ -61,11 +103,20 @@ discard block |
||
| 61 | 103 | |
| 62 | 104 | public function hasChannelPricing(ChannelPricingInterface $channelPricing): bool; |
| 63 | 105 | |
| 106 | + /** |
|
| 107 | + * @return void |
|
| 108 | + */ |
|
| 64 | 109 | public function addChannelPricing(ChannelPricingInterface $channelPricing): void; |
| 65 | 110 | |
| 111 | + /** |
|
| 112 | + * @return void |
|
| 113 | + */ |
|
| 66 | 114 | public function removeChannelPricing(ChannelPricingInterface $channelPricing): void; |
| 67 | 115 | |
| 68 | 116 | public function isShippingRequired(): bool; |
| 69 | 117 | |
| 118 | + /** |
|
| 119 | + * @return void |
|
| 120 | + */ |
|
| 70 | 121 | public function setShippingRequired(bool $shippingRequired): void; |
| 71 | 122 | } |