Completed
Push — sonata-block-4 ( 430eec...7b4499 )
by Kamil
66:32 queued 45:06
created
src/Sylius/Component/Core/Model/ImageInterface.php 1 patch
Doc Comments   +20 added lines patch added patch discarded remove patch
@@ -22,16 +22,35 @@  discard block
 block discarded – undo
22 22
      */
23 23
     public function getType(): ?string;
24 24
 
25
+    /**
26
+     * @return void
27
+     */
25 28
     public function setType(?string $type): void;
26 29
 
30
+    /**
31
+     * @return \SplFileInfo|null
32
+     */
27 33
     public function getFile(): ?\SplFileInfo;
28 34
 
35
+    /**
36
+     * @param \Symfony\Component\HttpFoundation\File\UploadedFile $file
37
+     *
38
+     * @return void
39
+     */
29 40
     public function setFile(?\SplFileInfo $file): void;
30 41
 
31 42
     public function hasFile(): bool;
32 43
 
44
+    /**
45
+     * @return string|null
46
+     */
33 47
     public function getPath(): ?string;
34 48
 
49
+    /**
50
+     * @param string $path
51
+     *
52
+     * @return void
53
+     */
35 54
     public function setPath(?string $path): void;
36 55
 
37 56
     /**
@@ -41,6 +60,7 @@  discard block
 block discarded – undo
41 60
 
42 61
     /**
43 62
      * @param object|null $owner
63
+     * @return void
44 64
      */
45 65
     public function setOwner($owner): void;
46 66
 }
Please login to merge, or discard this patch.
src/Sylius/Component/Core/Model/OrderInterface.php 1 patch
Doc Comments   +75 added lines patch added patch discarded remove patch
@@ -32,22 +32,51 @@  discard block
 block discarded – undo
32 32
     CustomerAwareInterface,
33 33
     ChannelAwareInterface
34 34
 {
35
+    /**
36
+     * @return null|UserInterface
37
+     */
35 38
     public function getUser(): ?UserInterface;
36 39
 
40
+    /**
41
+     * @return AddressInterface|null
42
+     */
37 43
     public function getShippingAddress(): ?AddressInterface;
38 44
 
45
+    /**
46
+     * @return void
47
+     */
39 48
     public function setShippingAddress(?AddressInterface $address): void;
40 49
 
50
+    /**
51
+     * @return AddressInterface|null
52
+     */
41 53
     public function getBillingAddress(): ?AddressInterface;
42 54
 
55
+    /**
56
+     * @param AddressInterface $address
57
+     *
58
+     * @return void
59
+     */
43 60
     public function setBillingAddress(?AddressInterface $address): void;
44 61
 
62
+    /**
63
+     * @return string
64
+     */
45 65
     public function getCheckoutState(): ?string;
46 66
 
67
+    /**
68
+     * @return void
69
+     */
47 70
     public function setCheckoutState(?string $checkoutState): void;
48 71
 
72
+    /**
73
+     * @return string
74
+     */
49 75
     public function getPaymentState(): ?string;
50 76
 
77
+    /**
78
+     * @return void
79
+     */
51 80
     public function setPaymentState(?string $paymentState): void;
52 81
 
53 82
     /**
@@ -75,26 +104,58 @@  discard block
 block discarded – undo
75 104
 
76 105
     public function hasShipments(): bool;
77 106
 
107
+    /**
108
+     * @return void
109
+     */
78 110
     public function addShipment(ShipmentInterface $shipment): void;
79 111
 
112
+    /**
113
+     * @return void
114
+     */
80 115
     public function removeShipment(ShipmentInterface $shipment): void;
81 116
 
117
+    /**
118
+     * @return void
119
+     */
82 120
     public function removeShipments(): void;
83 121
 
84 122
     public function hasShipment(ShipmentInterface $shipment): bool;
85 123
 
124
+    /**
125
+     * @return string|null
126
+     */
86 127
     public function getCurrencyCode(): ?string;
87 128
 
129
+    /**
130
+     * @return void
131
+     */
88 132
     public function setCurrencyCode(?string $currencyCode): void;
89 133
 
134
+    /**
135
+     * @return string|null
136
+     */
90 137
     public function getLocaleCode(): ?string;
91 138
 
139
+    /**
140
+     * @return void
141
+     */
92 142
     public function setLocaleCode(?string $localeCode): void;
93 143
 
144
+    /**
145
+     * @param PromotionCouponInterface $coupon
146
+     *
147
+     * @return void
148
+     */
94 149
     public function setPromotionCoupon(?BaseCouponInterface $coupon): void;
95 150
 
151
+    /**
152
+     * @return string
153
+     */
96 154
     public function getShippingState(): ?string;
97 155
 
156
+    /**
157
+     * @return void
158
+     */
98 159
     public function setShippingState(?string $state): void;
99 160
 
100 161
     public function getLastPayment(?string $state = null): ?PaymentInterface;
@@ -105,12 +166,26 @@  discard block
 block discarded – undo
105 166
 
106 167
     public function getOrderPromotionTotal(): int;
107 168
 
169
+    /**
170
+     * @return string|null
171
+     */
108 172
     public function getTokenValue(): ?string;
109 173
 
174
+    /**
175
+     * @return void
176
+     */
110 177
     public function setTokenValue(?string $tokenValue): void;
111 178
 
179
+    /**
180
+     * @return string|null
181
+     */
112 182
     public function getCustomerIp(): ?string;
113 183
 
184
+    /**
185
+     * @param string|null $customerIp
186
+     *
187
+     * @return void
188
+     */
114 189
     public function setCustomerIp(?string $customerIp): void;
115 190
 
116 191
     /**
Please login to merge, or discard this patch.
src/Sylius/Component/Order/Model/AdjustableInterface.php 1 patch
Doc Comments   +11 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,22 +18,32 @@
 block discarded – undo
18 18
 interface AdjustableInterface
19 19
 {
20 20
     /**
21
-     * @return AdjustmentInterface[]
21
+     * @return Collection
22 22
      *
23 23
      * @psalm-return Collection<array-key, AdjustmentInterface>
24 24
      */
25 25
     public function getAdjustments(?string $type = null): Collection;
26 26
 
27
+    /**
28
+     * @return void
29
+     */
27 30
     public function addAdjustment(AdjustmentInterface $adjustment): void;
28 31
 
32
+    /**
33
+     * @return void
34
+     */
29 35
     public function removeAdjustment(AdjustmentInterface $adjustment): void;
30 36
 
31 37
     public function getAdjustmentsTotal(?string $type = null): int;
32 38
 
39
+    /**
40
+     * @return void
41
+     */
33 42
     public function removeAdjustments(?string $type = null): void;
34 43
 
35 44
     /**
36 45
      * Recalculates adjustments total. Should be used after adjustment change.
46
+     * @return void
37 47
      */
38 48
     public function recalculateAdjustmentsTotal(): void;
39 49
 }
Please login to merge, or discard this patch.
src/Sylius/Component/Product/Model/ProductOptionValueInterface.php 1 patch
Doc Comments   +14 added lines patch added patch discarded remove patch
@@ -20,16 +20,30 @@
 block discarded – undo
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
+     * @param ProductOptionInterface|null $option
30
+     *
31
+     * @return void
32
+     */
25 33
     public function setOption(?ProductOptionInterface $option): void;
26 34
 
27 35
     public function getValue(): ?string;
28 36
 
37
+    /**
38
+     * @return void
39
+     */
29 40
     public function setValue(?string $value): void;
30 41
 
31 42
     public function getOptionCode(): ?string;
32 43
 
44
+    /**
45
+     * @return string
46
+     */
33 47
     public function getName(): ?string;
34 48
 
35 49
     /**
Please login to merge, or discard this patch.
src/Sylius/Component/User/Model/UserAwareInterface.php 1 patch
Doc Comments   +8 added lines patch added patch discarded remove patch
@@ -15,7 +15,15 @@
 block discarded – undo
15 15
 
16 16
 interface UserAwareInterface
17 17
 {
18
+    /**
19
+     * @return null|UserInterface
20
+     */
18 21
     public function getUser(): ?UserInterface;
19 22
 
23
+    /**
24
+     * @param null|User $user
25
+     *
26
+     * @return void
27
+     */
20 28
     public function setUser(?UserInterface $user);
21 29
 }
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Shop/Checkout/CompletePageInterface.php 1 patch
Doc Comments   +15 added lines patch added patch discarded remove patch
@@ -38,6 +38,9 @@  discard block
 block discarded – undo
38 38
 
39 39
     public function hasShippingMethod(ShippingMethodInterface $shippingMethod): bool;
40 40
 
41
+    /**
42
+     * @return void
43
+     */
41 44
     public function addNotes(string $notes): void;
42 45
 
43 46
     public function hasPromotionTotal(string $promotionTotal): bool;
@@ -62,12 +65,24 @@  discard block
 block discarded – undo
62 65
 
63 66
     public function hasCurrency(string $currencyCode): bool;
64 67
 
68
+    /**
69
+     * @return void
70
+     */
65 71
     public function confirmOrder(): void;
66 72
 
73
+    /**
74
+     * @return void
75
+     */
67 76
     public function changeAddress(): void;
68 77
 
78
+    /**
79
+     * @return void
80
+     */
69 81
     public function changeShippingMethod(): void;
70 82
 
83
+    /**
84
+     * @return void
85
+     */
71 86
     public function changePaymentMethod(): void;
72 87
 
73 88
     public function hasShippingProvinceName(string $provinceName): bool;
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Shop/Checkout/SelectPaymentPageInterface.php 1 patch
Doc Comments   +15 added lines patch added patch discarded remove patch
@@ -17,18 +17,33 @@
 block discarded – undo
17 17
 
18 18
 interface SelectPaymentPageInterface extends SymfonyPageInterface
19 19
 {
20
+    /**
21
+     * @return void
22
+     */
20 23
     public function selectPaymentMethod(string $paymentMethod): void;
21 24
 
22 25
     public function hasPaymentMethod(string $paymentMethodName): bool;
23 26
 
24 27
     public function getItemSubtotal(string $itemName): string;
25 28
 
29
+    /**
30
+     * @return void
31
+     */
26 32
     public function nextStep(): void;
27 33
 
34
+    /**
35
+     * @return void
36
+     */
28 37
     public function changeShippingMethod(): void;
29 38
 
39
+    /**
40
+     * @return void
41
+     */
30 42
     public function changeShippingMethodByStepLabel(): void;
31 43
 
44
+    /**
45
+     * @return void
46
+     */
32 47
     public function changeAddressByStepLabel(): void;
33 48
 
34 49
     public function hasNoAvailablePaymentMethodsWarning(): bool;
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Shop/Checkout/SelectShippingPageInterface.php 1 patch
Doc Comments   +12 added lines patch added patch discarded remove patch
@@ -17,6 +17,9 @@  discard block
 block discarded – undo
17 17
 
18 18
 interface SelectShippingPageInterface extends SymfonyPageInterface
19 19
 {
20
+    /**
21
+     * @return void
22
+     */
20 23
     public function selectShippingMethod(string $shippingMethod): void;
21 24
 
22 25
     public function getShippingMethods(): array;
@@ -29,10 +32,19 @@  discard block
 block discarded – undo
29 32
 
30 33
     public function getItemSubtotal(string $itemName): string;
31 34
 
35
+    /**
36
+     * @return void
37
+     */
32 38
     public function nextStep(): void;
33 39
 
40
+    /**
41
+     * @return void
42
+     */
34 43
     public function changeAddress(): void;
35 44
 
45
+    /**
46
+     * @return void
47
+     */
36 48
     public function changeAddressByStepLabel(): void;
37 49
 
38 50
     public function getPurchaserEmail(): string;
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Shop/Checkout/AddressPageInterface.php 1 patch
Doc Comments   +45 added lines patch added patch discarded remove patch
@@ -18,48 +18,93 @@
 block discarded – undo
18 18
 
19 19
 interface AddressPageInterface extends SymfonyPageInterface
20 20
 {
21
+    /**
22
+     * @return void
23
+     */
21 24
     public function chooseDifferentBillingAddress(): void;
22 25
 
23 26
     public function checkInvalidCredentialsValidation(): bool;
24 27
 
25 28
     public function checkValidationMessageFor(string $element, string $message): bool;
26 29
 
30
+    /**
31
+     * @return void
32
+     */
27 33
     public function specifyShippingAddress(AddressInterface $shippingAddress): void;
28 34
 
35
+    /**
36
+     * @return void
37
+     */
29 38
     public function selectShippingAddressProvince(string $province): void;
30 39
 
40
+    /**
41
+     * @return void
42
+     */
31 43
     public function specifyBillingAddress(AddressInterface $billingAddress): void;
32 44
 
45
+    /**
46
+     * @return void
47
+     */
33 48
     public function selectBillingAddressProvince(string $province): void;
34 49
 
50
+    /**
51
+     * @return void
52
+     */
35 53
     public function specifyEmail(?string $email): void;
36 54
 
55
+    /**
56
+     * @return void
57
+     */
37 58
     public function specifyShippingAddressFullName(string $fullName): void;
38 59
 
39 60
     public function canSignIn(): bool;
40 61
 
62
+    /**
63
+     * @return void
64
+     */
41 65
     public function signIn(): void;
42 66
 
67
+    /**
68
+     * @return void
69
+     */
43 70
     public function specifyPassword(string $password): void;
44 71
 
45 72
     public function getItemSubtotal(string $itemName): string;
46 73
 
47 74
     public function getShippingAddressCountry(): string;
48 75
 
76
+    /**
77
+     * @return void
78
+     */
49 79
     public function nextStep(): void;
50 80
 
81
+    /**
82
+     * @return void
83
+     */
51 84
     public function backToStore(): void;
52 85
 
86
+    /**
87
+     * @return void
88
+     */
53 89
     public function specifyBillingAddressProvince(string $provinceName): void;
54 90
 
91
+    /**
92
+     * @return void
93
+     */
55 94
     public function specifyShippingAddressProvince(string $provinceName): void;
56 95
 
57 96
     public function hasShippingAddressInput(): bool;
58 97
 
59 98
     public function hasBillingAddressInput(): bool;
60 99
 
100
+    /**
101
+     * @return void
102
+     */
61 103
     public function selectShippingAddressFromAddressBook(AddressInterface $address): void;
62 104
 
105
+    /**
106
+     * @return void
107
+     */
63 108
     public function selectBillingAddressFromAddressBook(AddressInterface $address): void;
64 109
 
65 110
     public function getPreFilledShippingAddress(): AddressInterface;
Please login to merge, or discard this patch.