@@ -20,44 +20,94 @@ discard block |
||
| 20 | 20 | |
| 21 | 21 | interface PromotionInterface extends CodeAwareInterface, TimestampableInterface, ResourceInterface |
| 22 | 22 | { |
| 23 | + /** |
|
| 24 | + * @return string |
|
| 25 | + */ |
|
| 23 | 26 | public function getName(): ?string; |
| 24 | 27 | |
| 28 | + /** |
|
| 29 | + * @return void |
|
| 30 | + */ |
|
| 25 | 31 | public function setName(?string $name): void; |
| 26 | 32 | |
| 33 | + /** |
|
| 34 | + * @return string |
|
| 35 | + */ |
|
| 27 | 36 | public function getDescription(): ?string; |
| 28 | 37 | |
| 38 | + /** |
|
| 39 | + * @return void |
|
| 40 | + */ |
|
| 29 | 41 | public function setDescription(?string $description): void; |
| 30 | 42 | |
| 31 | 43 | public function getPriority(): int; |
| 32 | 44 | |
| 45 | + /** |
|
| 46 | + * @param integer $priority |
|
| 47 | + * |
|
| 48 | + * @return void |
|
| 49 | + */ |
|
| 33 | 50 | public function setPriority(?int $priority): void; |
| 34 | 51 | |
| 35 | 52 | public function isExclusive(): bool; |
| 36 | 53 | |
| 54 | + /** |
|
| 55 | + * @return void |
|
| 56 | + */ |
|
| 37 | 57 | public function setExclusive(?bool $exclusive): void; |
| 38 | 58 | |
| 59 | + /** |
|
| 60 | + * @return integer |
|
| 61 | + */ |
|
| 39 | 62 | public function getUsageLimit(): ?int; |
| 40 | 63 | |
| 64 | + /** |
|
| 65 | + * @return void |
|
| 66 | + */ |
|
| 41 | 67 | public function setUsageLimit(?int $usageLimit): void; |
| 42 | 68 | |
| 43 | 69 | public function getUsed(): int; |
| 44 | 70 | |
| 71 | + /** |
|
| 72 | + * @return void |
|
| 73 | + */ |
|
| 45 | 74 | public function setUsed(int $used): void; |
| 46 | 75 | |
| 76 | + /** |
|
| 77 | + * @return void |
|
| 78 | + */ |
|
| 47 | 79 | public function incrementUsed(): void; |
| 48 | 80 | |
| 81 | + /** |
|
| 82 | + * @return void |
|
| 83 | + */ |
|
| 49 | 84 | public function decrementUsed(): void; |
| 50 | 85 | |
| 86 | + /** |
|
| 87 | + * @return \DateTimeInterface |
|
| 88 | + */ |
|
| 51 | 89 | public function getStartsAt(): ?\DateTimeInterface; |
| 52 | 90 | |
| 91 | + /** |
|
| 92 | + * @return void |
|
| 93 | + */ |
|
| 53 | 94 | public function setStartsAt(?\DateTimeInterface $startsAt): void; |
| 54 | 95 | |
| 96 | + /** |
|
| 97 | + * @return \DateTimeInterface |
|
| 98 | + */ |
|
| 55 | 99 | public function getEndsAt(): ?\DateTimeInterface; |
| 56 | 100 | |
| 101 | + /** |
|
| 102 | + * @return void |
|
| 103 | + */ |
|
| 57 | 104 | public function setEndsAt(?\DateTimeInterface $endsAt): void; |
| 58 | 105 | |
| 59 | 106 | public function isCouponBased(): bool; |
| 60 | 107 | |
| 108 | + /** |
|
| 109 | + * @return void |
|
| 110 | + */ |
|
| 61 | 111 | public function setCouponBased(?bool $couponBased): void; |
| 62 | 112 | |
| 63 | 113 | /** |
@@ -69,8 +119,14 @@ discard block |
||
| 69 | 119 | |
| 70 | 120 | public function hasCoupons(): bool; |
| 71 | 121 | |
| 122 | + /** |
|
| 123 | + * @return void |
|
| 124 | + */ |
|
| 72 | 125 | public function addCoupon(PromotionCouponInterface $coupon): void; |
| 73 | 126 | |
| 127 | + /** |
|
| 128 | + * @return void |
|
| 129 | + */ |
|
| 74 | 130 | public function removeCoupon(PromotionCouponInterface $coupon): void; |
| 75 | 131 | |
| 76 | 132 | /** |
@@ -82,8 +138,14 @@ discard block |
||
| 82 | 138 | |
| 83 | 139 | public function hasRule(PromotionRuleInterface $rule): bool; |
| 84 | 140 | |
| 141 | + /** |
|
| 142 | + * @return void |
|
| 143 | + */ |
|
| 85 | 144 | public function addRule(PromotionRuleInterface $rule): void; |
| 86 | 145 | |
| 146 | + /** |
|
| 147 | + * @return void |
|
| 148 | + */ |
|
| 87 | 149 | public function removeRule(PromotionRuleInterface $rule): void; |
| 88 | 150 | |
| 89 | 151 | /** |
@@ -95,7 +157,13 @@ discard block |
||
| 95 | 157 | |
| 96 | 158 | public function hasAction(PromotionActionInterface $action): bool; |
| 97 | 159 | |
| 160 | + /** |
|
| 161 | + * @return void |
|
| 162 | + */ |
|
| 98 | 163 | public function addAction(PromotionActionInterface $action): void; |
| 99 | 164 | |
| 165 | + /** |
|
| 166 | + * @return void |
|
| 167 | + */ |
|
| 100 | 168 | public function removeAction(PromotionActionInterface $action): void; |
| 101 | 169 | } |
@@ -17,9 +17,18 @@ |
||
| 17 | 17 | |
| 18 | 18 | interface PromotionRuleInterface extends ResourceInterface, ConfigurablePromotionElementInterface |
| 19 | 19 | { |
| 20 | + /** |
|
| 21 | + * @return void |
|
| 22 | + */ |
|
| 20 | 23 | public function setType(?string $type): void; |
| 21 | 24 | |
| 25 | + /** |
|
| 26 | + * @return void |
|
| 27 | + */ |
|
| 22 | 28 | public function setConfiguration(array $configuration): void; |
| 23 | 29 | |
| 30 | + /** |
|
| 31 | + * @return void |
|
| 32 | + */ |
|
| 24 | 33 | public function setPromotion(?PromotionInterface $promotion): void; |
| 25 | 34 | } |
@@ -26,7 +26,13 @@ |
||
| 26 | 26 | |
| 27 | 27 | public function hasPromotion(PromotionInterface $promotion): bool; |
| 28 | 28 | |
| 29 | + /** |
|
| 30 | + * @return void |
|
| 31 | + */ |
|
| 29 | 32 | public function addPromotion(PromotionInterface $promotion): void; |
| 30 | 33 | |
| 34 | + /** |
|
| 35 | + * @return void |
|
| 36 | + */ |
|
| 31 | 37 | public function removePromotion(PromotionInterface $promotion): void; |
| 32 | 38 | } |
@@ -17,5 +17,8 @@ |
||
| 17 | 17 | |
| 18 | 18 | interface PromotionProcessorInterface |
| 19 | 19 | { |
| 20 | + /** |
|
| 21 | + * @return void |
|
| 22 | + */ |
|
| 20 | 23 | public function process(PromotionSubjectInterface $subject): void; |
| 21 | 24 | } |
@@ -27,11 +27,23 @@ |
||
| 27 | 27 | */ |
| 28 | 28 | public function getReviews(): Collection; |
| 29 | 29 | |
| 30 | + /** |
|
| 31 | + * @return void |
|
| 32 | + */ |
|
| 30 | 33 | public function addReview(ReviewInterface $review): void; |
| 31 | 34 | |
| 35 | + /** |
|
| 36 | + * @return void |
|
| 37 | + */ |
|
| 32 | 38 | public function removeReview(ReviewInterface $review): void; |
| 33 | 39 | |
| 40 | + /** |
|
| 41 | + * @return double |
|
| 42 | + */ |
|
| 34 | 43 | public function getAverageRating(): ?float; |
| 35 | 44 | |
| 45 | + /** |
|
| 46 | + * @return void |
|
| 47 | + */ |
|
| 36 | 48 | public function setAverageRating(float $averageRating): void; |
| 37 | 49 | } |
@@ -17,15 +17,33 @@ |
||
| 17 | 17 | |
| 18 | 18 | interface ReviewerInterface extends ResourceInterface |
| 19 | 19 | { |
| 20 | + /** |
|
| 21 | + * @return string|null |
|
| 22 | + */ |
|
| 20 | 23 | public function getEmail(): ?string; |
| 21 | 24 | |
| 25 | + /** |
|
| 26 | + * @return void |
|
| 27 | + */ |
|
| 22 | 28 | public function setEmail(?string $email): void; |
| 23 | 29 | |
| 30 | + /** |
|
| 31 | + * @return string|null |
|
| 32 | + */ |
|
| 24 | 33 | public function getFirstName(): ?string; |
| 25 | 34 | |
| 35 | + /** |
|
| 36 | + * @return void |
|
| 37 | + */ |
|
| 26 | 38 | public function setFirstName(?string $firstName): void; |
| 27 | 39 | |
| 40 | + /** |
|
| 41 | + * @return string|null |
|
| 42 | + */ |
|
| 28 | 43 | public function getLastName(): ?string; |
| 29 | 44 | |
| 45 | + /** |
|
| 46 | + * @return void |
|
| 47 | + */ |
|
| 30 | 48 | public function setLastName(?string $lastName): void; |
| 31 | 49 | } |
@@ -15,15 +15,33 @@ |
||
| 15 | 15 | |
| 16 | 16 | interface ShippableInterface |
| 17 | 17 | { |
| 18 | + /** |
|
| 19 | + * @return double |
|
| 20 | + */ |
|
| 18 | 21 | public function getShippingWeight(): ?float; |
| 19 | 22 | |
| 23 | + /** |
|
| 24 | + * @return double |
|
| 25 | + */ |
|
| 20 | 26 | public function getShippingVolume(): ?float; |
| 21 | 27 | |
| 28 | + /** |
|
| 29 | + * @return double |
|
| 30 | + */ |
|
| 22 | 31 | public function getShippingWidth(): ?float; |
| 23 | 32 | |
| 33 | + /** |
|
| 34 | + * @return double |
|
| 35 | + */ |
|
| 24 | 36 | public function getShippingHeight(): ?float; |
| 25 | 37 | |
| 38 | + /** |
|
| 39 | + * @return double |
|
| 40 | + */ |
|
| 26 | 41 | public function getShippingDepth(): ?float; |
| 27 | 42 | |
| 43 | + /** |
|
| 44 | + * @return ShippingCategoryInterface |
|
| 45 | + */ |
|
| 28 | 46 | public function getShippingCategory(): ?ShippingCategoryInterface; |
| 29 | 47 | } |
@@ -19,11 +19,23 @@ |
||
| 19 | 19 | |
| 20 | 20 | interface ShippingCategoryInterface extends CodeAwareInterface, TimestampableInterface, ResourceInterface |
| 21 | 21 | { |
| 22 | + /** |
|
| 23 | + * @return string |
|
| 24 | + */ |
|
| 22 | 25 | public function getName(): ?string; |
| 23 | 26 | |
| 27 | + /** |
|
| 28 | + * @return void |
|
| 29 | + */ |
|
| 24 | 30 | public function setName(?string $name): void; |
| 25 | 31 | |
| 32 | + /** |
|
| 33 | + * @return string |
|
| 34 | + */ |
|
| 26 | 35 | public function getDescription(): ?string; |
| 27 | 36 | |
| 37 | + /** |
|
| 38 | + * @return void |
|
| 39 | + */ |
|
| 28 | 40 | public function setDescription(?string $description): void; |
| 29 | 41 | } |
@@ -35,18 +35,38 @@ discard block |
||
| 35 | 35 | |
| 36 | 36 | public function getName(): ?string; |
| 37 | 37 | |
| 38 | + /** |
|
| 39 | + * @return void |
|
| 40 | + */ |
|
| 38 | 41 | public function setName(?string $name): void; |
| 39 | 42 | |
| 40 | 43 | public function getDescription(): ?string; |
| 41 | 44 | |
| 45 | + /** |
|
| 46 | + * @return void |
|
| 47 | + */ |
|
| 42 | 48 | public function setDescription(?string $description): void; |
| 43 | 49 | |
| 50 | + /** |
|
| 51 | + * @return integer |
|
| 52 | + */ |
|
| 44 | 53 | public function getPosition(): ?int; |
| 45 | 54 | |
| 55 | + /** |
|
| 56 | + * @param integer $position |
|
| 57 | + * |
|
| 58 | + * @return void |
|
| 59 | + */ |
|
| 46 | 60 | public function setPosition(?int $position): void; |
| 47 | 61 | |
| 62 | + /** |
|
| 63 | + * @return ShippingCategoryInterface |
|
| 64 | + */ |
|
| 48 | 65 | public function getCategory(): ?ShippingCategoryInterface; |
| 49 | 66 | |
| 67 | + /** |
|
| 68 | + * @return void |
|
| 69 | + */ |
|
| 50 | 70 | public function setCategory(?ShippingCategoryInterface $category); |
| 51 | 71 | |
| 52 | 72 | /** |
@@ -56,9 +76,13 @@ discard block |
||
| 56 | 76 | * 1) None of shippables matches the category. |
| 57 | 77 | * 2) At least one of shippables matches the category. |
| 58 | 78 | * 3) All shippables have to match the method category. |
| 79 | + * @return integer |
|
| 59 | 80 | */ |
| 60 | 81 | public function getCategoryRequirement(): ?int; |
| 61 | 82 | |
| 83 | + /** |
|
| 84 | + * @return void |
|
| 85 | + */ |
|
| 62 | 86 | public function setCategoryRequirement(?int $categoryRequirement): void; |
| 63 | 87 | |
| 64 | 88 | /** |
@@ -68,14 +92,19 @@ discard block |
||
| 68 | 92 | |
| 69 | 93 | /** |
| 70 | 94 | * @param string $calculator |
| 95 | + * @return void |
|
| 71 | 96 | */ |
| 72 | 97 | public function setCalculator(?string $calculator): void; |
| 73 | 98 | |
| 74 | 99 | public function getConfiguration(): array; |
| 75 | 100 | |
| 101 | + /** |
|
| 102 | + * @return void |
|
| 103 | + */ |
|
| 76 | 104 | public function setConfiguration(array $configuration): void; |
| 77 | 105 | |
| 78 | 106 | /** |
| 107 | + * @param string $locale |
|
| 79 | 108 | * @return ShippingMethodTranslationInterface |
| 80 | 109 | */ |
| 81 | 110 | public function getTranslation(?string $locale = null): TranslationInterface; |