@@ -287,6 +287,8 @@ discard block |
||
287 | 287 | |
288 | 288 | /** |
289 | 289 | * @Given /^I fill in the (billing|shipping) address to (.+)$/ |
290 | + * @param string $type |
|
291 | + * @param string $country |
|
290 | 292 | */ |
291 | 293 | public function iFillInCheckoutAddress($type, $country) |
292 | 294 | { |
@@ -312,6 +314,9 @@ discard block |
||
312 | 314 | $this->iFillInAddressFields('sylius_address', $country); |
313 | 315 | } |
314 | 316 | |
317 | + /** |
|
318 | + * @param string $base |
|
319 | + */ |
|
315 | 320 | protected function iFillInAddressFields($base, $country) |
316 | 321 | { |
317 | 322 | $this->fillField($base.'[firstName]', 'John'); |
@@ -324,6 +329,7 @@ discard block |
||
324 | 329 | |
325 | 330 | /** |
326 | 331 | * @Given /^I select the "(?P<field>([^""]|\\")*)" radio button$/ |
332 | + * @param string $field |
|
327 | 333 | */ |
328 | 334 | public function iSelectTheRadioButton($field) |
329 | 335 | { |
@@ -740,6 +746,9 @@ discard block |
||
740 | 746 | $this->assertSession()->elementContains('css', '#enabled', 'yes'); |
741 | 747 | } |
742 | 748 | |
749 | + /** |
|
750 | + * @param string $route |
|
751 | + */ |
|
743 | 752 | private function assertRoute($route) |
744 | 753 | { |
745 | 754 | $this->assertSession()->addressEquals($this->generatePageUrl($route)); |
@@ -166,6 +166,10 @@ |
||
166 | 166 | return $this->redirectToIndex(); |
167 | 167 | } |
168 | 168 | |
169 | + /** |
|
170 | + * @param string $type |
|
171 | + * @param string $message |
|
172 | + */ |
|
169 | 173 | protected function addFlash($type, $message) |
170 | 174 | { |
171 | 175 | $translator = $this->get('translator'); |
@@ -126,7 +126,7 @@ |
||
126 | 126 | /** |
127 | 127 | * Returns all zone types available. |
128 | 128 | * |
129 | - * @return array of self::TYPE_* |
|
129 | + * @return string[] of self::TYPE_* |
|
130 | 130 | */ |
131 | 131 | public static function getTypes() |
132 | 132 | { |
@@ -32,6 +32,7 @@ discard block |
||
32 | 32 | |
33 | 33 | /** |
34 | 34 | * @param string $name |
35 | + * @return void |
|
35 | 36 | */ |
36 | 37 | public function setName($name); |
37 | 38 | |
@@ -42,6 +43,7 @@ discard block |
||
42 | 43 | |
43 | 44 | /** |
44 | 45 | * @param string $type |
46 | + * @return void |
|
45 | 47 | */ |
46 | 48 | public function setType($type); |
47 | 49 | |
@@ -52,6 +54,7 @@ discard block |
||
52 | 54 | |
53 | 55 | /** |
54 | 56 | * @param string $scope |
57 | + * @return void |
|
55 | 58 | */ |
56 | 59 | public function setScope($scope); |
57 | 60 | |
@@ -61,7 +64,8 @@ discard block |
||
61 | 64 | public function getMembers(); |
62 | 65 | |
63 | 66 | /** |
64 | - * @param Collection|ZoneMemberInterface[] $members |
|
67 | + * @param Collection $members |
|
68 | + * @return void |
|
65 | 69 | */ |
66 | 70 | public function setMembers(Collection $members); |
67 | 71 | |
@@ -72,11 +76,13 @@ discard block |
||
72 | 76 | |
73 | 77 | /** |
74 | 78 | * @param ZoneMemberInterface $member |
79 | + * @return void |
|
75 | 80 | */ |
76 | 81 | public function addMember(ZoneMemberInterface $member); |
77 | 82 | |
78 | 83 | /** |
79 | 84 | * @param ZoneMemberInterface $member |
85 | + * @return void |
|
80 | 86 | */ |
81 | 87 | public function removeMember(ZoneMemberInterface $member); |
82 | 88 |
@@ -42,12 +42,14 @@ discard block |
||
42 | 42 | /** |
43 | 43 | * Sets all prototype attributes. |
44 | 44 | * |
45 | - * @param Collection|AttributeInterface[] $attributes |
|
45 | + * @param Collection $attributes |
|
46 | + * @return void |
|
46 | 47 | */ |
47 | 48 | public function setAttributes(Collection $attributes); |
48 | 49 | |
49 | 50 | /** |
50 | 51 | * @param AttributeInterface $attribute |
52 | + * @return void |
|
51 | 53 | */ |
52 | 54 | public function addAttribute(AttributeInterface $attribute); |
53 | 55 | |
@@ -55,6 +57,7 @@ discard block |
||
55 | 57 | * Removes attribute from prototype. |
56 | 58 | * |
57 | 59 | * @param AttributeInterface $attribute |
60 | + * @return void |
|
58 | 61 | */ |
59 | 62 | public function removeAttribute(AttributeInterface $attribute); |
60 | 63 | |
@@ -77,12 +80,14 @@ discard block |
||
77 | 80 | /** |
78 | 81 | * Sets all prototype options. |
79 | 82 | * |
80 | - * @param Collection|OptionInterface[] $options |
|
83 | + * @param Collection $options |
|
84 | + * @return void |
|
81 | 85 | */ |
82 | 86 | public function setOptions(Collection $options); |
83 | 87 | |
84 | 88 | /** |
85 | 89 | * @param OptionInterface $option |
90 | + * @return void |
|
86 | 91 | */ |
87 | 92 | public function addOption(OptionInterface $option); |
88 | 93 | |
@@ -90,6 +95,7 @@ discard block |
||
90 | 95 | * Removes option from prototype. |
91 | 96 | * |
92 | 97 | * @param OptionInterface $option |
98 | + * @return void |
|
93 | 99 | */ |
94 | 100 | public function removeOption(OptionInterface $option); |
95 | 101 | |
@@ -109,6 +115,7 @@ discard block |
||
109 | 115 | |
110 | 116 | /** |
111 | 117 | * @param null|ArchetypeInterface $parent |
118 | + * @return void |
|
112 | 119 | */ |
113 | 120 | public function setParent(ArchetypeInterface $parent = null); |
114 | 121 |
@@ -37,7 +37,6 @@ |
||
37 | 37 | protected $name; |
38 | 38 | |
39 | 39 | /** |
40 | - * @param string $name |
|
41 | 40 | */ |
42 | 41 | public function __construct() |
43 | 42 | { |
@@ -21,6 +21,7 @@ discard block |
||
21 | 21 | { |
22 | 22 | /** |
23 | 23 | * @param string $currencyCode |
24 | + * @return void |
|
24 | 25 | */ |
25 | 26 | public function setCurrencyCode($currencyCode); |
26 | 27 | |
@@ -30,12 +31,13 @@ discard block |
||
30 | 31 | public function getCurrencyCode(); |
31 | 32 | |
32 | 33 | /** |
33 | - * @return Collection|OrderInterface[] |
|
34 | + * @return \Doctrine\Common\Collections\ArrayCollection |
|
34 | 35 | */ |
35 | 36 | public function getOrders(); |
36 | 37 | |
37 | 38 | /** |
38 | 39 | * @param AddressInterface $billingAddress |
40 | + * @return void |
|
39 | 41 | */ |
40 | 42 | public function setBillingAddress(AddressInterface $billingAddress = null); |
41 | 43 | |
@@ -46,6 +48,7 @@ discard block |
||
46 | 48 | |
47 | 49 | /** |
48 | 50 | * @param AddressInterface $shippingAddress |
51 | + * @return void |
|
49 | 52 | */ |
50 | 53 | public function setShippingAddress(AddressInterface $shippingAddress = null); |
51 | 54 | |
@@ -56,11 +59,13 @@ discard block |
||
56 | 59 | |
57 | 60 | /** |
58 | 61 | * @param AddressInterface $address |
62 | + * @return void |
|
59 | 63 | */ |
60 | 64 | public function addAddress(AddressInterface $address); |
61 | 65 | |
62 | 66 | /** |
63 | 67 | * @param AddressInterface $address |
68 | + * @return void |
|
64 | 69 | */ |
65 | 70 | public function removeAddress(AddressInterface $address); |
66 | 71 | |
@@ -72,7 +77,7 @@ discard block |
||
72 | 77 | public function hasAddress(AddressInterface $address); |
73 | 78 | |
74 | 79 | /** |
75 | - * @return Collection|AddressInterface[] |
|
80 | + * @return \Doctrine\Common\Collections\ArrayCollection |
|
76 | 81 | */ |
77 | 82 | public function getAddresses(); |
78 | 83 | } |
@@ -353,7 +353,7 @@ |
||
353 | 353 | } |
354 | 354 | |
355 | 355 | /** |
356 | - * @return null|BaseCouponInterface |
|
356 | + * @return BaseCouponInterface |
|
357 | 357 | */ |
358 | 358 | public function getPromotionCoupon() |
359 | 359 | { |
@@ -43,6 +43,7 @@ discard block |
||
43 | 43 | |
44 | 44 | /** |
45 | 45 | * @param AddressInterface $address |
46 | + * @return void |
|
46 | 47 | */ |
47 | 48 | public function setShippingAddress(AddressInterface $address); |
48 | 49 | |
@@ -53,6 +54,7 @@ discard block |
||
53 | 54 | |
54 | 55 | /** |
55 | 56 | * @param AddressInterface $address |
57 | + * @return void |
|
56 | 58 | */ |
57 | 59 | public function setBillingAddress(AddressInterface $address); |
58 | 60 | |
@@ -63,6 +65,7 @@ discard block |
||
63 | 65 | |
64 | 66 | /** |
65 | 67 | * @param string $checkoutState |
68 | + * @return void |
|
66 | 69 | */ |
67 | 70 | public function setCheckoutState($checkoutState); |
68 | 71 | |
@@ -73,23 +76,24 @@ discard block |
||
73 | 76 | |
74 | 77 | /** |
75 | 78 | * @param string $paymentState |
79 | + * @return void |
|
76 | 80 | */ |
77 | 81 | public function setPaymentState($paymentState); |
78 | 82 | |
79 | 83 | /** |
80 | - * @return Collection|OrderItemUnitInterface[] |
|
84 | + * @return \Doctrine\Common\Collections\ArrayCollection |
|
81 | 85 | */ |
82 | 86 | public function getItemUnits(); |
83 | 87 | |
84 | 88 | /** |
85 | 89 | * @param ProductVariantInterface $variant |
86 | 90 | * |
87 | - * @return Collection|OrderItemUnitInterface[] |
|
91 | + * @return \Doctrine\Common\Collections\ArrayCollection |
|
88 | 92 | */ |
89 | 93 | public function getItemUnitsByVariant(ProductVariantInterface $variant); |
90 | 94 | |
91 | 95 | /** |
92 | - * @return Collection|ShipmentInterface[] |
|
96 | + * @return \Sylius\Component\Shipping\Model\ShipmentInterface[] |
|
93 | 97 | */ |
94 | 98 | public function getShipments(); |
95 | 99 | |
@@ -100,11 +104,13 @@ discard block |
||
100 | 104 | |
101 | 105 | /** |
102 | 106 | * @param ShipmentInterface $shipment |
107 | + * @return void |
|
103 | 108 | */ |
104 | 109 | public function addShipment(ShipmentInterface $shipment); |
105 | 110 | |
106 | 111 | /** |
107 | 112 | * @param ShipmentInterface $shipment |
113 | + * @return void |
|
108 | 114 | */ |
109 | 115 | public function removeShipment(ShipmentInterface $shipment); |
110 | 116 | |
@@ -122,6 +128,7 @@ discard block |
||
122 | 128 | |
123 | 129 | /** |
124 | 130 | * @param string |
131 | + * @return void |
|
125 | 132 | */ |
126 | 133 | public function setCurrencyCode($currencyCode); |
127 | 134 | |
@@ -132,11 +139,13 @@ discard block |
||
132 | 139 | |
133 | 140 | /** |
134 | 141 | * @param float $exchangeRate |
142 | + * @return void |
|
135 | 143 | */ |
136 | 144 | public function setExchangeRate($exchangeRate); |
137 | 145 | |
138 | 146 | /** |
139 | 147 | * @param BaseCouponInterface $coupon |
148 | + * @return void |
|
140 | 149 | */ |
141 | 150 | public function setPromotionCoupon(BaseCouponInterface $coupon = null); |
142 | 151 | |
@@ -147,6 +156,7 @@ discard block |
||
147 | 156 | |
148 | 157 | /** |
149 | 158 | * @param string $state |
159 | + * @return void |
|
150 | 160 | */ |
151 | 161 | public function setShippingState($state); |
152 | 162 |