@@ -25,12 +25,24 @@ discard block |
||
| 25 | 25 | */ |
| 26 | 26 | public function getOrders(): Collection; |
| 27 | 27 | |
| 28 | + /** |
|
| 29 | + * @return AddressInterface|null |
|
| 30 | + */ |
|
| 28 | 31 | public function getDefaultAddress(): ?AddressInterface; |
| 29 | 32 | |
| 33 | + /** |
|
| 34 | + * @return void |
|
| 35 | + */ |
|
| 30 | 36 | public function setDefaultAddress(?AddressInterface $defaultAddress): void; |
| 31 | 37 | |
| 38 | + /** |
|
| 39 | + * @return void |
|
| 40 | + */ |
|
| 32 | 41 | public function addAddress(AddressInterface $address): void; |
| 33 | 42 | |
| 43 | + /** |
|
| 44 | + * @return void |
|
| 45 | + */ |
|
| 34 | 46 | public function removeAddress(AddressInterface $address): void; |
| 35 | 47 | |
| 36 | 48 | public function hasAddress(AddressInterface $address): bool; |
@@ -43,12 +55,13 @@ discard block |
||
| 43 | 55 | public function hasUser(): bool; |
| 44 | 56 | |
| 45 | 57 | /** |
| 46 | - * @return ShopUserInterface|UserInterface|null |
|
| 58 | + * @return ShopUserInterface|null |
|
| 47 | 59 | */ |
| 48 | 60 | public function getUser(): ?UserInterface; |
| 49 | 61 | |
| 50 | 62 | /** |
| 51 | 63 | * @param ShopUserInterface|UserInterface|null $user |
| 64 | + * @return void |
|
| 52 | 65 | */ |
| 53 | 66 | public function setUser(?UserInterface $user); |
| 54 | 67 | } |
@@ -20,16 +20,28 @@ |
||
| 20 | 20 | |
| 21 | 21 | interface ProductOptionValueInterface extends ResourceInterface, CodeAwareInterface, TranslatableInterface |
| 22 | 22 | { |
| 23 | + /** |
|
| 24 | + * @return ProductOptionInterface|null |
|
| 25 | + */ |
|
| 23 | 26 | public function getOption(): ?ProductOptionInterface; |
| 24 | 27 | |
| 28 | + /** |
|
| 29 | + * @return void |
|
| 30 | + */ |
|
| 25 | 31 | public function setOption(?ProductOptionInterface $option): void; |
| 26 | 32 | |
| 27 | 33 | public function getValue(): ?string; |
| 28 | 34 | |
| 35 | + /** |
|
| 36 | + * @return void |
|
| 37 | + */ |
|
| 29 | 38 | public function setValue(?string $value): void; |
| 30 | 39 | |
| 31 | 40 | public function getOptionCode(): ?string; |
| 32 | 41 | |
| 42 | + /** |
|
| 43 | + * @return string |
|
| 44 | + */ |
|
| 33 | 45 | public function getName(): ?string; |
| 34 | 46 | |
| 35 | 47 | /** |
@@ -15,5 +15,8 @@ |
||
| 15 | 15 | |
| 16 | 16 | interface PromotionCouponAwarePromotionSubjectInterface extends PromotionSubjectInterface |
| 17 | 17 | { |
| 18 | + /** |
|
| 19 | + * @return PromotionCouponInterface|null |
|
| 20 | + */ |
|
| 18 | 21 | public function getPromotionCoupon(): ?PromotionCouponInterface; |
| 19 | 22 | } |
@@ -41,14 +41,14 @@ discard block |
||
| 41 | 41 | /** |
| 42 | 42 | * @param mixed $datum |
| 43 | 43 | * |
| 44 | - * @return bool False if the item was not found, true otherwise. |
|
| 44 | + * @return boolean|null False if the item was not found, true otherwise. |
|
| 45 | 45 | * |
| 46 | 46 | * @psalm-param T $datum |
| 47 | 47 | */ |
| 48 | 48 | public function remove($datum) { } |
| 49 | 49 | |
| 50 | 50 | /** |
| 51 | - * @return bool |
|
| 51 | + * @return boolean|null |
|
| 52 | 52 | */ |
| 53 | 53 | public function isEmpty() { } |
| 54 | 54 | |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | /** |
| 106 | 106 | * @param mixed $datum |
| 107 | 107 | * |
| 108 | - * @return bool |
|
| 108 | + * @return boolean|null |
|
| 109 | 109 | * |
| 110 | 110 | * @psalm-param T $datum |
| 111 | 111 | */ |
@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | /** |
| 115 | 115 | * @param int $priority |
| 116 | 116 | * |
| 117 | - * @return bool |
|
| 117 | + * @return boolean|null |
|
| 118 | 118 | */ |
| 119 | 119 | public function hasPriority($priority) { } |
| 120 | 120 | |
@@ -400,6 +400,7 @@ discard block |
||
| 400 | 400 | |
| 401 | 401 | /** |
| 402 | 402 | * @Given /^([^"]+) gives ("[^"]+%") discount on shipping to every order$/ |
| 403 | + * @param integer $discount |
|
| 403 | 404 | */ |
| 404 | 405 | public function itGivesPercentageDiscountOnShippingToEveryOrder(PromotionInterface $promotion, $discount) |
| 405 | 406 | { |
@@ -725,6 +726,7 @@ discard block |
||
| 725 | 726 | |
| 726 | 727 | /** |
| 727 | 728 | * @Given /^([^"]+) gives ("[^"]+%") discount on shipping to every order over ("(?:€|£|\$)[^"]+")$/ |
| 729 | + * @param integer $discount |
|
| 728 | 730 | */ |
| 729 | 731 | public function itGivesDiscountOnShippingToEveryOrderOver( |
| 730 | 732 | PromotionInterface $promotion, |
@@ -899,6 +901,9 @@ discard block |
||
| 899 | 901 | return $coupon; |
| 900 | 902 | } |
| 901 | 903 | |
| 904 | + /** |
|
| 905 | + * @param string $prefix |
|
| 906 | + */ |
|
| 902 | 907 | private function generateCoupons( |
| 903 | 908 | int $amount, |
| 904 | 909 | PromotionInterface $promotion, |
@@ -23,17 +23,38 @@ |
||
| 23 | 23 | |
| 24 | 24 | public function checkGenerationValidation(string $message): bool; |
| 25 | 25 | |
| 26 | + /** |
|
| 27 | + * @return void |
|
| 28 | + */ |
|
| 26 | 29 | public function generate(): void; |
| 27 | 30 | |
| 31 | + /** |
|
| 32 | + * @return void |
|
| 33 | + */ |
|
| 28 | 34 | public function specifyAmount(?int $amount): void; |
| 29 | 35 | |
| 36 | + /** |
|
| 37 | + * @return void |
|
| 38 | + */ |
|
| 30 | 39 | public function specifyCodeLength(?int $codeLength): void; |
| 31 | 40 | |
| 41 | + /** |
|
| 42 | + * @return void |
|
| 43 | + */ |
|
| 32 | 44 | public function setExpiresAt(\DateTimeInterface $date): void; |
| 33 | 45 | |
| 46 | + /** |
|
| 47 | + * @return void |
|
| 48 | + */ |
|
| 34 | 49 | public function setUsageLimit(int $limit): void; |
| 35 | 50 | |
| 51 | + /** |
|
| 52 | + * @return void |
|
| 53 | + */ |
|
| 36 | 54 | public function specifyPrefix(string $prefix): void; |
| 37 | 55 | |
| 56 | + /** |
|
| 57 | + * @return void |
|
| 58 | + */ |
|
| 38 | 59 | public function specifySuffix(string $suffix): void; |
| 39 | 60 | } |
@@ -19,9 +19,18 @@ |
||
| 19 | 19 | { |
| 20 | 20 | public function hasValidationErrorWith(string $message): bool; |
| 21 | 21 | |
| 22 | + /** |
|
| 23 | + * @return void |
|
| 24 | + */ |
|
| 22 | 25 | public function logIn(): void; |
| 23 | 26 | |
| 27 | + /** |
|
| 28 | + * @return void |
|
| 29 | + */ |
|
| 24 | 30 | public function specifyPassword(string $password): void; |
| 25 | 31 | |
| 32 | + /** |
|
| 33 | + * @return void |
|
| 34 | + */ |
|
| 26 | 35 | public function specifyUsername(string $username): void; |
| 27 | 36 | } |
@@ -19,7 +19,13 @@ |
||
| 19 | 19 | { |
| 20 | 20 | public function checkValidationMessageFor(string $element, string $message): bool; |
| 21 | 21 | |
| 22 | + /** |
|
| 23 | + * @return void |
|
| 24 | + */ |
|
| 22 | 25 | public function reset(): void; |
| 23 | 26 | |
| 27 | + /** |
|
| 28 | + * @return void |
|
| 29 | + */ |
|
| 24 | 30 | public function specifyEmail(?string $email): void; |
| 25 | 31 | } |
@@ -23,10 +23,19 @@ |
||
| 23 | 23 | |
| 24 | 24 | public function getLastProductNameFromList(): string; |
| 25 | 25 | |
| 26 | + /** |
|
| 27 | + * @return void |
|
| 28 | + */ |
|
| 26 | 29 | public function search(string $name): void; |
| 27 | 30 | |
| 31 | + /** |
|
| 32 | + * @return void |
|
| 33 | + */ |
|
| 28 | 34 | public function sort(string $orderNumber): void; |
| 29 | 35 | |
| 36 | + /** |
|
| 37 | + * @return void |
|
| 38 | + */ |
|
| 30 | 39 | public function clearFilter(): void; |
| 31 | 40 | |
| 32 | 41 | public function isProductOnList(string $productName): bool; |