@@ -52,6 +52,9 @@ |
||
| 52 | 52 | return 'sylius_locale'; |
| 53 | 53 | } |
| 54 | 54 | |
| 55 | + /** |
|
| 56 | + * @param string|null $localeCode |
|
| 57 | + */ |
|
| 55 | 58 | private function getLocaleCode(?string $localeCode): ?string |
| 56 | 59 | { |
| 57 | 60 | if (null !== $localeCode) { |
@@ -20,6 +20,7 @@ |
||
| 20 | 20 | /** |
| 21 | 21 | * @param string $code The code to be converted to a name |
| 22 | 22 | * @param string|null $localeCode The locale that the returned name should be in |
| 23 | + * @return string |
|
| 23 | 24 | */ |
| 24 | 25 | public function convertCodeToName(string $code, ?string $localeCode = null): ?string; |
| 25 | 26 | } |
@@ -22,6 +22,7 @@ discard block |
||
| 22 | 22 | { |
| 23 | 23 | /** |
| 24 | 24 | * @throws ElementNotFoundException |
| 25 | + * @return void |
|
| 25 | 26 | */ |
| 26 | 27 | public function addToCart(); |
| 27 | 28 | |
@@ -29,6 +30,7 @@ discard block |
||
| 29 | 30 | * @param string $quantity |
| 30 | 31 | * |
| 31 | 32 | * @throws ElementNotFoundException |
| 33 | + * @return void |
|
| 32 | 34 | */ |
| 33 | 35 | public function addToCartWithQuantity($quantity); |
| 34 | 36 | |
@@ -36,6 +38,7 @@ discard block |
||
| 36 | 38 | * @param string $variant |
| 37 | 39 | * |
| 38 | 40 | * @throws ElementNotFoundException |
| 41 | + * @return void |
|
| 39 | 42 | */ |
| 40 | 43 | public function addToCartWithVariant($variant); |
| 41 | 44 | |
@@ -43,6 +46,7 @@ discard block |
||
| 43 | 46 | * @param string $optionValue |
| 44 | 47 | * |
| 45 | 48 | * @throws ElementNotFoundException |
| 49 | + * @return void |
|
| 46 | 50 | */ |
| 47 | 51 | public function addToCartWithOption(ProductOptionInterface $option, $optionValue); |
| 48 | 52 | |
@@ -58,9 +62,13 @@ discard block |
||
| 58 | 62 | |
| 59 | 63 | /** |
| 60 | 64 | * @param string $url |
| 65 | + * @return void |
|
| 61 | 66 | */ |
| 62 | 67 | public function visit($url); |
| 63 | 68 | |
| 69 | + /** |
|
| 70 | + * @return null|string |
|
| 71 | + */ |
|
| 64 | 72 | public function getAttributeByName(string $name): ?string; |
| 65 | 73 | |
| 66 | 74 | /** |
@@ -75,6 +83,7 @@ discard block |
||
| 75 | 83 | |
| 76 | 84 | /** |
| 77 | 85 | * @param int $timeout |
| 86 | + * @return void |
|
| 78 | 87 | */ |
| 79 | 88 | public function waitForValidationErrors($timeout); |
| 80 | 89 | |
@@ -118,11 +127,13 @@ discard block |
||
| 118 | 127 | /** |
| 119 | 128 | * @param string $optionName |
| 120 | 129 | * @param string $optionValue |
| 130 | + * @return void |
|
| 121 | 131 | */ |
| 122 | 132 | public function selectOption($optionName, $optionValue); |
| 123 | 133 | |
| 124 | 134 | /** |
| 125 | 135 | * @param string $variantName |
| 136 | + * @return void |
|
| 126 | 137 | */ |
| 127 | 138 | public function selectVariant($variantName); |
| 128 | 139 | |
@@ -17,5 +17,8 @@ |
||
| 17 | 17 | |
| 18 | 18 | interface FakeChannelCodeProviderInterface |
| 19 | 19 | { |
| 20 | + /** |
|
| 21 | + * @return string |
|
| 22 | + */ |
|
| 20 | 23 | public function getCode(Request $request): ?string; |
| 21 | 24 | } |
@@ -95,6 +95,7 @@ |
||
| 95 | 95 | |
| 96 | 96 | /** |
| 97 | 97 | * @param object $entity |
| 98 | + * @param string|null $manager |
|
| 98 | 99 | */ |
| 99 | 100 | private function getProperObjectManager(?string $manager, $entity): ?ObjectManager |
| 100 | 101 | { |
@@ -91,6 +91,7 @@ |
||
| 91 | 91 | |
| 92 | 92 | /** |
| 93 | 93 | * {@inheritdoc} |
| 94 | + * @param string $class |
|
| 94 | 95 | */ |
| 95 | 96 | public function supportsClass($class): bool |
| 96 | 97 | { |
@@ -116,6 +116,9 @@ |
||
| 116 | 116 | return $this->zoneRepository->findBy(['scope' => [$scope, Scope::ALL]]); |
| 117 | 117 | } |
| 118 | 118 | |
| 119 | + /** |
|
| 120 | + * @return AddressInterface |
|
| 121 | + */ |
|
| 119 | 122 | private function getZoneByCode(string $code): ?ZoneInterface |
| 120 | 123 | { |
| 121 | 124 | return $this->zoneRepository->findOneBy(['code' => $code]); |
@@ -29,8 +29,14 @@ |
||
| 29 | 29 | |
| 30 | 30 | public function hasProvinces(): bool; |
| 31 | 31 | |
| 32 | + /** |
|
| 33 | + * @return void |
|
| 34 | + */ |
|
| 32 | 35 | public function addProvince(ProvinceInterface $province): void; |
| 33 | 36 | |
| 37 | + /** |
|
| 38 | + * @return void |
|
| 39 | + */ |
|
| 34 | 40 | public function removeProvince(ProvinceInterface $province): void; |
| 35 | 41 | |
| 36 | 42 | public function hasProvince(ProvinceInterface $province): bool; |
@@ -19,6 +19,9 @@ |
||
| 19 | 19 | |
| 20 | 20 | interface PaymentMethodInterface extends BasePaymentMethodInterface, ChannelsAwareInterface |
| 21 | 21 | { |
| 22 | + /** |
|
| 23 | + * @return void |
|
| 24 | + */ |
|
| 22 | 25 | public function setGatewayConfig(?GatewayConfigInterface $gateway): void; |
| 23 | 26 | |
| 24 | 27 | public function getGatewayConfig(): ?GatewayConfigInterface; |