@@ -17,11 +17,20 @@ |
||
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 | + * @return void |
|
27 | + */ |
|
22 | 28 | public function setPerCustomerUsageLimit(?int $perCustomerUsageLimit): void; |
23 | 29 | |
24 | 30 | public function isReusableFromCancelledOrders(): bool; |
25 | 31 | |
32 | + /** |
|
33 | + * @return void |
|
34 | + */ |
|
26 | 35 | public function setReusableFromCancelledOrders(bool $reusableFromCancelledOrders): void; |
27 | 36 | } |
@@ -44,27 +44,48 @@ |
||
44 | 44 | |
45 | 45 | public function upload(): Response; |
46 | 46 | |
47 | + /** |
|
48 | + * @return void |
|
49 | + */ |
|
47 | 50 | public function buildCreateRequest(): void; |
48 | 51 | |
52 | + /** |
|
53 | + * @return void |
|
54 | + */ |
|
49 | 55 | public function buildUpdateRequest(string $id): void; |
50 | 56 | |
57 | + /** |
|
58 | + * @return void |
|
59 | + */ |
|
51 | 60 | public function buildUploadRequest(): void; |
52 | 61 | |
53 | - /** @param string|int $value */ |
|
62 | + /** @param string $value */ |
|
54 | 63 | public function addParameter(string $key, $value): void; |
55 | 64 | |
56 | 65 | /** @param string|int $value */ |
57 | 66 | public function addFilter(string $key, $value): void; |
58 | 67 | |
68 | + /** |
|
69 | + * @return void |
|
70 | + */ |
|
59 | 71 | public function addFile(string $key, UploadedFile $file): void; |
60 | 72 | |
61 | 73 | /** @param string|int|array $value */ |
62 | 74 | public function addRequestData(string $key, $value): void; |
63 | 75 | |
76 | + /** |
|
77 | + * @return void |
|
78 | + */ |
|
64 | 79 | public function addSubResourceData(string $key, array $data): void; |
65 | 80 | |
81 | + /** |
|
82 | + * @return void |
|
83 | + */ |
|
66 | 84 | public function removeSubResource(string $subResource, string $id): void; |
67 | 85 | |
86 | + /** |
|
87 | + * @return void |
|
88 | + */ |
|
68 | 89 | public function updateRequestData(array $data): void; |
69 | 90 | |
70 | 91 | public function getLastResponse(): Response; |
@@ -17,5 +17,8 @@ |
||
17 | 17 | |
18 | 18 | interface UserContextInterface |
19 | 19 | { |
20 | + /** |
|
21 | + * @return null|UserInterface |
|
22 | + */ |
|
20 | 23 | public function getUser(): ?UserInterface; |
21 | 24 | } |
@@ -164,6 +164,9 @@ |
||
164 | 164 | ; |
165 | 165 | } |
166 | 166 | |
167 | + /** |
|
168 | + * @param FactoryInterface|null $couponFactory |
|
169 | + */ |
|
167 | 170 | private static function getCouponNormalizer(?FactoryInterface $couponFactory): \Closure |
168 | 171 | { |
169 | 172 | return function (Options $options, array $couponDefinitions) use ($couponFactory): array { |
@@ -166,7 +166,7 @@ |
||
166 | 166 | |
167 | 167 | private static function getCouponNormalizer(?FactoryInterface $couponFactory): \Closure |
168 | 168 | { |
169 | - return function (Options $options, array $couponDefinitions) use ($couponFactory): array { |
|
169 | + return function (Options $options, array $couponDefinitions) use ($couponFactory) : array { |
|
170 | 170 | if (null === $couponFactory) { |
171 | 171 | throw new \RuntimeException('You must configure a $couponFactory'); |
172 | 172 | } |
@@ -46,7 +46,8 @@ |
||
46 | 46 | { |
47 | 47 | $this |
48 | 48 | ->shouldThrow(\InvalidArgumentException::class) |
49 | - ->during('validate', ['', new class() extends Constraint { |
|
49 | + ->during('validate', ['', new class() extends Constraint |
|
50 | + { |
|
50 | 51 | }]) |
51 | 52 | ; |
52 | 53 | } |
@@ -18,13 +18,25 @@ |
||
18 | 18 | |
19 | 19 | interface IndexPageInterface extends CrudIndexPageInterface |
20 | 20 | { |
21 | + /** |
|
22 | + * @return void |
|
23 | + */ |
|
21 | 24 | public function filterByTaxon(string $taxonName): void; |
22 | 25 | |
23 | 26 | public function hasProductAccessibleImage(string $productCode): bool; |
24 | 27 | |
28 | + /** |
|
29 | + * @return void |
|
30 | + */ |
|
25 | 31 | public function showProductPage(string $productName): void; |
26 | 32 | |
33 | + /** |
|
34 | + * @return void |
|
35 | + */ |
|
27 | 36 | public function chooseChannelFilter(string $channelName) :void; |
28 | 37 | |
38 | + /** |
|
39 | + * @return void |
|
40 | + */ |
|
29 | 41 | public function filter(): void; |
30 | 42 | } |
@@ -14,7 +14,6 @@ |
||
14 | 14 | namespace Sylius\Behat\Page\Admin\Product; |
15 | 15 | |
16 | 16 | use Sylius\Behat\Page\Admin\Crud\IndexPageInterface as CrudIndexPageInterface; |
17 | -use Sylius\Component\Core\Model\ChannelInterface; |
|
18 | 17 | |
19 | 18 | interface IndexPageInterface extends CrudIndexPageInterface |
20 | 19 | { |
@@ -106,7 +106,7 @@ |
||
106 | 106 | |
107 | 107 | try { |
108 | 108 | return Languages::getName($language, $region); |
109 | - } catch(MissingResourceException $exception) { |
|
109 | + } catch (MissingResourceException $exception) { |
|
110 | 110 | return null; |
111 | 111 | } |
112 | 112 | } |
@@ -93,7 +93,7 @@ |
||
93 | 93 | { |
94 | 94 | try { |
95 | 95 | return Currencies::getName($code); |
96 | - } catch(MissingResourceException $exception) { |
|
96 | + } catch (MissingResourceException $exception) { |
|
97 | 97 | return null; |
98 | 98 | } |
99 | 99 | } |
@@ -21,7 +21,6 @@ |
||
21 | 21 | use Sylius\Component\Addressing\Model\CountryInterface; |
22 | 22 | use Sylius\Component\Addressing\Model\ProvinceInterface; |
23 | 23 | use Sylius\Component\Addressing\Model\ZoneInterface; |
24 | -use Sylius\Component\Addressing\Model\ZoneMember; |
|
25 | 24 | use Sylius\Component\Addressing\Model\ZoneMemberInterface; |
26 | 25 | use Webmozart\Assert\Assert; |
27 | 26 |