@@ -42,6 +42,9 @@ |
||
42 | 42 | } |
43 | 43 | } |
44 | 44 | |
45 | + /** |
|
46 | + * @param ToggleableInterface $value |
|
47 | + */ |
|
45 | 48 | private function ensureValueImplementsToggleableInterface($value): void |
46 | 49 | { |
47 | 50 | if (!($value instanceof ToggleableInterface)) { |
@@ -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 | } |
@@ -16,6 +16,7 @@ discard block |
||
16 | 16 | use Doctrine\ORM\EntityManager; |
17 | 17 | use Doctrine\ORM\Mapping; |
18 | 18 | use Doctrine\ORM\QueryBuilder; |
19 | +use SyliusLabs\AssociationHydrator\AssociationHydrator; |
|
19 | 20 | use Sylius\Bundle\OrderBundle\Doctrine\ORM\OrderRepository as BaseOrderRepository; |
20 | 21 | use Sylius\Component\Core\Model\ChannelInterface; |
21 | 22 | use Sylius\Component\Core\Model\CustomerInterface; |
@@ -24,7 +25,6 @@ discard block |
||
24 | 25 | use Sylius\Component\Core\OrderCheckoutStates; |
25 | 26 | use Sylius\Component\Core\OrderPaymentStates; |
26 | 27 | use Sylius\Component\Core\Repository\OrderRepositoryInterface; |
27 | -use SyliusLabs\AssociationHydrator\AssociationHydrator; |
|
28 | 28 | |
29 | 29 | class OrderRepository extends BaseOrderRepository implements OrderRepositoryInterface |
30 | 30 | { |
@@ -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 | { |
@@ -15,6 +15,9 @@ |
||
15 | 15 | |
16 | 16 | interface FormTypeRegistryInterface |
17 | 17 | { |
18 | + /** |
|
19 | + * @return void |
|
20 | + */ |
|
18 | 21 | public function add(string $identifier, string $typeIdentifier, string $formType): void; |
19 | 22 | |
20 | 23 | public function get(string $identifier, string $typeIdentifier): ?string; |
@@ -93,6 +93,9 @@ |
||
93 | 93 | ]); |
94 | 94 | } |
95 | 95 | |
96 | + /** |
|
97 | + * @return string |
|
98 | + */ |
|
96 | 99 | protected function getRegistryIdentifier(FormInterface $form, $data = null): ?string |
97 | 100 | { |
98 | 101 | if ($data instanceof ConfigurablePromotionElementInterface && null !== $data->getType()) { |
@@ -157,7 +157,7 @@ |
||
157 | 157 | /** |
158 | 158 | * @param string $name |
159 | 159 | * |
160 | - * @return mixed|string|null |
|
160 | + * @return string |
|
161 | 161 | */ |
162 | 162 | public function getRedirectRoute($name) |
163 | 163 | { |
@@ -15,8 +15,14 @@ |
||
15 | 15 | |
16 | 16 | interface FormTypeRegistryInterface |
17 | 17 | { |
18 | + /** |
|
19 | + * @return void |
|
20 | + */ |
|
18 | 21 | public function add(string $identifier, string $typeIdentifier, string $formType): void; |
19 | 22 | |
23 | + /** |
|
24 | + * @return string |
|
25 | + */ |
|
20 | 26 | public function get(string $identifier, string $typeIdentifier): ?string; |
21 | 27 | |
22 | 28 | public function has(string $identifier, string $typeIdentifier): bool; |