Completed
Push — data-fixtures-bundle ( 65883a )
by Kamil
24:24
created
src/Sylius/Behat/Context/Setup/PromotionContext.php 1 patch
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -400,6 +400,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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,
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Admin/PromotionCoupon/GeneratePageInterface.php 1 patch
Doc Comments   +21 added lines patch added patch discarded remove patch
@@ -23,17 +23,38 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Admin/Channel/CreatePageInterface.php 1 patch
Doc Comments   +51 added lines patch added patch discarded remove patch
@@ -17,37 +17,88 @@
 block discarded – undo
17 17
 
18 18
 interface CreatePageInterface extends BaseCreatePageInterface
19 19
 {
20
+    /**
21
+     * @return void
22
+     */
20 23
     public function enable(): void;
21 24
 
25
+    /**
26
+     * @return void
27
+     */
22 28
     public function disable(): void;
23 29
 
30
+    /**
31
+     * @return void
32
+     */
24 33
     public function nameIt(string $name): void;
25 34
 
35
+    /**
36
+     * @return void
37
+     */
26 38
     public function specifyCode(string $code): void;
27 39
 
40
+    /**
41
+     * @return void
42
+     */
28 43
     public function describeItAs(string $description): void;
29 44
 
45
+    /**
46
+     * @return void
47
+     */
30 48
     public function setHostname(string $hostname): void;
31 49
 
50
+    /**
51
+     * @return void
52
+     */
32 53
     public function setContactEmail(string $contactEmail): void;
33 54
 
55
+    /**
56
+     * @return void
57
+     */
34 58
     public function defineColor(string $color): void;
35 59
 
60
+    /**
61
+     * @return void
62
+     */
36 63
     public function chooseLocale(string $language): void;
37 64
 
65
+    /**
66
+     * @return void
67
+     */
38 68
     public function chooseCurrency(string $currencyCode): void;
39 69
 
70
+    /**
71
+     * @return void
72
+     */
40 73
     public function chooseDefaultTaxZone(string $taxZone): void;
41 74
 
75
+    /**
76
+     * @return void
77
+     */
42 78
     public function chooseDefaultLocale(?string $locale): void;
43 79
 
80
+    /**
81
+     * @return void
82
+     */
44 83
     public function chooseBaseCurrency(?string $currency): void;
45 84
 
85
+    /**
86
+     * @return void
87
+     */
46 88
     public function chooseTaxCalculationStrategy(string $taxCalculationStrategy): void;
47 89
 
90
+    /**
91
+     * @return void
92
+     */
48 93
     public function allowToSkipShippingStep(): void;
49 94
 
95
+    /**
96
+     * @return void
97
+     */
50 98
     public function allowToSkipPaymentStep(): void;
51 99
 
100
+    /**
101
+     * @return void
102
+     */
52 103
     public function setType(string $type): void;
53 104
 }
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Admin/Channel/UpdatePageInterface.php 1 patch
Doc Comments   +25 added lines patch added patch discarded remove patch
@@ -18,23 +18,45 @@  discard block
 block discarded – undo
18 18
 
19 19
 interface UpdatePageInterface extends BaseUpdatePageInterface
20 20
 {
21
+    /**
22
+     * @return void
23
+     */
21 24
     public function enable(): void;
22 25
 
26
+    /**
27
+     * @return void
28
+     */
23 29
     public function disable(): void;
24 30
 
31
+    /**
32
+     * @return void
33
+     */
25 34
     public function setTheme(string $themeName): void;
26 35
 
27 36
     /**
28 37
      * @throws ElementNotFoundException
38
+     * @return void
29 39
      */
30 40
     public function unsetTheme(): void;
31 41
 
42
+    /**
43
+     * @return void
44
+     */
32 45
     public function chooseLocale(string $language): void;
33 46
 
47
+    /**
48
+     * @return void
49
+     */
34 50
     public function chooseCurrency(string $currencyCode): void;
35 51
 
52
+    /**
53
+     * @return void
54
+     */
36 55
     public function chooseDefaultTaxZone(string $taxZone): void;
37 56
 
57
+    /**
58
+     * @return void
59
+     */
38 60
     public function chooseTaxCalculationStrategy(string $taxCalculationStrategy): void;
39 61
 
40 62
     public function isCodeDisabled(): bool;
@@ -51,6 +73,9 @@  discard block
 block discarded – undo
51 73
 
52 74
     public function isBaseCurrencyDisabled(): bool;
53 75
 
76
+    /**
77
+     * @return void
78
+     */
54 79
     public function changeType(string $type): void;
55 80
 
56 81
     public function getType(): string;
Please login to merge, or discard this patch.
src/Sylius/Component/Channel/Model/ChannelInterface.php 1 patch
Doc Comments   +34 added lines patch added patch discarded remove patch
@@ -24,23 +24,57 @@
 block discarded – undo
24 24
     ToggleableInterface,
25 25
     ResourceInterface
26 26
 {
27
+    /**
28
+     * @return string|null
29
+     */
27 30
     public function getName(): ?string;
28 31
 
32
+    /**
33
+     * @param string $name
34
+     *
35
+     * @return void
36
+     */
29 37
     public function setName(?string $name): void;
30 38
 
39
+    /**
40
+     * @return string|null
41
+     */
31 42
     public function getDescription(): ?string;
32 43
 
44
+    /**
45
+     * @return void
46
+     */
33 47
     public function setDescription(?string $description): void;
34 48
 
49
+    /**
50
+     * @return string|null
51
+     */
35 52
     public function getHostname(): ?string;
36 53
 
54
+    /**
55
+     * @return void
56
+     */
37 57
     public function setHostname(?string $hostname): void;
38 58
 
59
+    /**
60
+     * @return string|null
61
+     */
39 62
     public function getColor(): ?string;
40 63
 
64
+    /**
65
+     * @return void
66
+     */
41 67
     public function setColor(?string $color): void;
42 68
 
69
+    /**
70
+     * @return string|null
71
+     */
43 72
     public function getType(): ?string;
44 73
 
74
+    /**
75
+     * @param string $type
76
+     *
77
+     * @return void
78
+     */
45 79
     public function setType(?string $type): void;
46 80
 }
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Shop/Account/LoginPageInterface.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -19,9 +19,18 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Shop/Account/RequestPasswordResetPageInterface.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -19,7 +19,13 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Shop/HomePageInterface.php 1 patch
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -24,6 +24,9 @@  discard block
 block discarded – undo
24 24
 
25 25
     public function hasLogoutButton(): bool;
26 26
 
27
+    /**
28
+     * @return void
29
+     */
27 30
     public function logOut();
28 31
 
29 32
     /**
@@ -43,6 +46,7 @@  discard block
 block discarded – undo
43 46
 
44 47
     /**
45 48
      * @param string $currencyCode
49
+     * @return void
46 50
      */
47 51
     public function switchCurrency($currencyCode);
48 52
 
@@ -58,6 +62,7 @@  discard block
 block discarded – undo
58 62
 
59 63
     /**
60 64
      * @param string $localeCode
65
+     * @return void
61 66
      */
62 67
     public function switchLocale($localeCode);
63 68
 
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Admin/Order/ShowPageInterface.php 1 patch
Doc Comments   +24 added lines patch added patch discarded remove patch
@@ -28,18 +28,30 @@  discard block
 block discarded – undo
28 28
 
29 29
     public function hasShipment(string $shippingMethodName): bool;
30 30
 
31
+    /**
32
+     * @return void
33
+     */
31 34
     public function specifyTrackingCode(string $code): void;
32 35
 
33 36
     public function canShipOrder(OrderInterface $order): bool;
34 37
 
38
+    /**
39
+     * @return void
40
+     */
35 41
     public function shipOrder(OrderInterface $order): void;
36 42
 
37 43
     public function hasPayment(string $paymentMethodName): bool;
38 44
 
39 45
     public function canCompleteOrderLastPayment(OrderInterface $order): bool;
40 46
 
47
+    /**
48
+     * @return void
49
+     */
41 50
     public function completeOrderLastPayment(OrderInterface $order): void;
42 51
 
52
+    /**
53
+     * @return void
54
+     */
43 55
     public function refundOrderLastPayment(OrderInterface $order): void;
44 56
 
45 57
     public function countItems(): int;
@@ -94,8 +106,14 @@  discard block
 block discarded – undo
94 106
 
95 107
     public function getShippingState(): string;
96 108
 
109
+    /**
110
+     * @return void
111
+     */
97 112
     public function cancelOrder(): void;
98 113
 
114
+    /**
115
+     * @return void
116
+     */
99 117
     public function deleteOrder(): void;
100 118
 
101 119
     public function hasNote(string $note): bool;
@@ -116,7 +134,13 @@  discard block
 block discarded – undo
116 134
 
117 135
     public function hasInformationAboutNoPayment(): bool;
118 136
 
137
+    /**
138
+     * @return void
139
+     */
119 140
     public function resendOrderConfirmationEmail(): void;
120 141
 
142
+    /**
143
+     * @return void
144
+     */
121 145
     public function resendShipmentConfirmationEmail(): void;
122 146
 }
Please login to merge, or discard this patch.