@@ -44,6 +44,7 @@ discard block |
||
| 44 | 44 | |
| 45 | 45 | /** |
| 46 | 46 | * @param AddressInterface $address |
| 47 | + * @return void |
|
| 47 | 48 | */ |
| 48 | 49 | public function setShippingAddress(AddressInterface $address); |
| 49 | 50 | |
@@ -54,6 +55,7 @@ discard block |
||
| 54 | 55 | |
| 55 | 56 | /** |
| 56 | 57 | * @param AddressInterface $address |
| 58 | + * @return void |
|
| 57 | 59 | */ |
| 58 | 60 | public function setBillingAddress(AddressInterface $address); |
| 59 | 61 | |
@@ -64,6 +66,7 @@ discard block |
||
| 64 | 66 | |
| 65 | 67 | /** |
| 66 | 68 | * @param string $checkoutState |
| 69 | + * @return void |
|
| 67 | 70 | */ |
| 68 | 71 | public function setCheckoutState($checkoutState); |
| 69 | 72 | |
@@ -74,6 +77,7 @@ discard block |
||
| 74 | 77 | |
| 75 | 78 | /** |
| 76 | 79 | * @param string $paymentState |
| 80 | + * @return void |
|
| 77 | 81 | */ |
| 78 | 82 | public function setPaymentState($paymentState); |
| 79 | 83 | |
@@ -101,14 +105,19 @@ discard block |
||
| 101 | 105 | |
| 102 | 106 | /** |
| 103 | 107 | * @param ShipmentInterface $shipment |
| 108 | + * @return void |
|
| 104 | 109 | */ |
| 105 | 110 | public function addShipment(ShipmentInterface $shipment); |
| 106 | 111 | |
| 107 | 112 | /** |
| 108 | 113 | * @param ShipmentInterface $shipment |
| 114 | + * @return void |
|
| 109 | 115 | */ |
| 110 | 116 | public function removeShipment(ShipmentInterface $shipment); |
| 111 | 117 | |
| 118 | + /** |
|
| 119 | + * @return void |
|
| 120 | + */ |
|
| 112 | 121 | public function removeShipments(); |
| 113 | 122 | |
| 114 | 123 | /** |
@@ -127,6 +136,7 @@ discard block |
||
| 127 | 136 | * @param string |
| 128 | 137 | * |
| 129 | 138 | * @throws \InvalidArgumentException |
| 139 | + * @return void |
|
| 130 | 140 | */ |
| 131 | 141 | public function setCurrencyCode($currencyCode); |
| 132 | 142 | |
@@ -137,6 +147,7 @@ discard block |
||
| 137 | 147 | |
| 138 | 148 | /** |
| 139 | 149 | * @param float $exchangeRate |
| 150 | + * @return void |
|
| 140 | 151 | */ |
| 141 | 152 | public function setExchangeRate($exchangeRate); |
| 142 | 153 | |
@@ -149,11 +160,13 @@ discard block |
||
| 149 | 160 | |
| 150 | 161 | /** |
| 151 | 162 | * @param string |
| 163 | + * @return void |
|
| 152 | 164 | */ |
| 153 | 165 | public function setLocaleCode($localeCode); |
| 154 | 166 | |
| 155 | 167 | /** |
| 156 | 168 | * @param BaseCouponInterface $coupon |
| 169 | + * @return void |
|
| 157 | 170 | */ |
| 158 | 171 | public function setPromotionCoupon(BaseCouponInterface $coupon = null); |
| 159 | 172 | |
@@ -164,6 +177,7 @@ discard block |
||
| 164 | 177 | |
| 165 | 178 | /** |
| 166 | 179 | * @param string $state |
| 180 | + * @return void |
|
| 167 | 181 | */ |
| 168 | 182 | public function setShippingState($state); |
| 169 | 183 | |
@@ -194,6 +208,7 @@ discard block |
||
| 194 | 208 | |
| 195 | 209 | /** |
| 196 | 210 | * @param string $tokenValue |
| 211 | + * @return void |
|
| 197 | 212 | */ |
| 198 | 213 | public function setTokenValue($tokenValue); |
| 199 | 214 | |
@@ -14,31 +14,30 @@ |
||
| 14 | 14 | use Behat\Behat\Context\Context; |
| 15 | 15 | use Doctrine\Common\Persistence\ObjectManager; |
| 16 | 16 | use SM\Factory\FactoryInterface as StateMachineFactoryInterface; |
| 17 | +use Sylius\Behat\Service\SharedStorageInterface; |
|
| 17 | 18 | use Sylius\Component\Core\Currency\CurrencyStorageInterface; |
| 19 | +use Sylius\Component\Core\Model\AddressInterface; |
|
| 18 | 20 | use Sylius\Component\Core\Model\ChannelInterface; |
| 19 | 21 | use Sylius\Component\Core\Model\ChannelPricingInterface; |
| 20 | -use Sylius\Component\Core\Model\PromotionCouponInterface; |
|
| 21 | -use Sylius\Component\Core\OrderCheckoutTransitions; |
|
| 22 | -use Sylius\Component\Order\Processor\OrderProcessorInterface; |
|
| 23 | -use Sylius\Component\Order\Modifier\OrderItemQuantityModifierInterface; |
|
| 24 | -use Sylius\Component\Core\Model\AddressInterface; |
|
| 25 | 22 | use Sylius\Component\Core\Model\OrderInterface; |
| 26 | 23 | use Sylius\Component\Core\Model\OrderItemInterface; |
| 27 | 24 | use Sylius\Component\Core\Model\ProductInterface; |
| 28 | 25 | use Sylius\Component\Core\Model\ProductVariantInterface; |
| 26 | +use Sylius\Component\Core\Model\PromotionCouponInterface; |
|
| 29 | 27 | use Sylius\Component\Core\Model\ShippingMethodInterface; |
| 28 | +use Sylius\Component\Core\OrderCheckoutTransitions; |
|
| 30 | 29 | use Sylius\Component\Core\Repository\OrderRepositoryInterface; |
| 31 | -use Sylius\Behat\Service\SharedStorageInterface; |
|
| 30 | +use Sylius\Component\Customer\Model\CustomerInterface; |
|
| 31 | +use Sylius\Component\Order\Modifier\OrderItemQuantityModifierInterface; |
|
| 32 | 32 | use Sylius\Component\Order\OrderTransitions; |
| 33 | -use Sylius\Component\Payment\Model\PaymentInterface; |
|
| 33 | +use Sylius\Component\Order\Processor\OrderProcessorInterface; |
|
| 34 | 34 | use Sylius\Component\Payment\Model\PaymentMethodInterface; |
| 35 | 35 | use Sylius\Component\Payment\PaymentTransitions; |
| 36 | +use Sylius\Component\Product\Resolver\ProductVariantResolverInterface; |
|
| 36 | 37 | use Sylius\Component\Resource\Factory\FactoryInterface; |
| 37 | 38 | use Sylius\Component\Resource\Repository\RepositoryInterface; |
| 38 | 39 | use Sylius\Component\Shipping\ShipmentTransitions; |
| 39 | -use Sylius\Component\Customer\Model\CustomerInterface; |
|
| 40 | 40 | use Sylius\Component\User\Model\UserInterface; |
| 41 | -use Sylius\Component\Product\Resolver\ProductVariantResolverInterface; |
|
| 42 | 41 | |
| 43 | 42 | /** |
| 44 | 43 | * @author Łukasz Chruściel <[email protected]> |
@@ -39,6 +39,7 @@ discard block |
||
| 39 | 39 | |
| 40 | 40 | /** |
| 41 | 41 | * @param string $email |
| 42 | + * @return void |
|
| 42 | 43 | */ |
| 43 | 44 | public function setEmail($email); |
| 44 | 45 | |
@@ -51,6 +52,7 @@ discard block |
||
| 51 | 52 | |
| 52 | 53 | /** |
| 53 | 54 | * @param string $emailCanonical |
| 55 | + * @return void |
|
| 54 | 56 | */ |
| 55 | 57 | public function setEmailCanonical($emailCanonical); |
| 56 | 58 | |
@@ -61,11 +63,13 @@ discard block |
||
| 61 | 63 | |
| 62 | 64 | /** |
| 63 | 65 | * @param CustomerInterface $customer |
| 66 | + * @return void |
|
| 64 | 67 | */ |
| 65 | 68 | public function setCustomer(CustomerInterface $customer = null); |
| 66 | 69 | |
| 67 | 70 | /** |
| 68 | 71 | * @param string $username |
| 72 | + * @return void |
|
| 69 | 73 | */ |
| 70 | 74 | public function setUsername($username); |
| 71 | 75 | |
@@ -78,11 +82,13 @@ discard block |
||
| 78 | 82 | |
| 79 | 83 | /** |
| 80 | 84 | * @param string $usernameCanonical |
| 85 | + * @return void |
|
| 81 | 86 | */ |
| 82 | 87 | public function setUsernameCanonical($usernameCanonical); |
| 83 | 88 | |
| 84 | 89 | /** |
| 85 | 90 | * @param bool $locked |
| 91 | + * @return void |
|
| 86 | 92 | */ |
| 87 | 93 | public function setLocked($locked); |
| 88 | 94 | |
@@ -93,6 +99,7 @@ discard block |
||
| 93 | 99 | |
| 94 | 100 | /** |
| 95 | 101 | * @param string $confirmationToken |
| 102 | + * @return void |
|
| 96 | 103 | */ |
| 97 | 104 | public function setConfirmationToken($confirmationToken); |
| 98 | 105 | |
@@ -100,6 +107,7 @@ discard block |
||
| 100 | 107 | * Sets the timestamp that the user requested a password reset. |
| 101 | 108 | * |
| 102 | 109 | * @param null|\DateTime $date |
| 110 | + * @return void |
|
| 103 | 111 | */ |
| 104 | 112 | public function setPasswordRequestedAt(\DateTime $date = null); |
| 105 | 113 | |
@@ -114,6 +122,7 @@ discard block |
||
| 114 | 122 | |
| 115 | 123 | /** |
| 116 | 124 | * @param \DateTime $date |
| 125 | + * @return void |
|
| 117 | 126 | */ |
| 118 | 127 | public function setCredentialsExpireAt(\DateTime $date = null); |
| 119 | 128 | |
@@ -124,6 +133,7 @@ discard block |
||
| 124 | 133 | |
| 125 | 134 | /** |
| 126 | 135 | * @param \DateTime $time |
| 136 | + * @return void |
|
| 127 | 137 | */ |
| 128 | 138 | public function setLastLogin(\DateTime $time = null); |
| 129 | 139 | |
@@ -145,16 +155,19 @@ discard block |
||
| 145 | 155 | * This overwrites any previous roles. |
| 146 | 156 | * |
| 147 | 157 | * @param array $roles |
| 158 | + * @return void |
|
| 148 | 159 | */ |
| 149 | 160 | public function setRoles(array $roles); |
| 150 | 161 | |
| 151 | 162 | /** |
| 152 | 163 | * @param string $role |
| 164 | + * @return void |
|
| 153 | 165 | */ |
| 154 | 166 | public function addRole($role); |
| 155 | 167 | |
| 156 | 168 | /** |
| 157 | 169 | * @param string $role |
| 170 | + * @return void |
|
| 158 | 171 | */ |
| 159 | 172 | public function removeRole($role); |
| 160 | 173 | |
@@ -178,6 +191,7 @@ discard block |
||
| 178 | 191 | * Connects OAuth account. |
| 179 | 192 | * |
| 180 | 193 | * @param UserOAuthInterface $oauth |
| 194 | + * @return void |
|
| 181 | 195 | */ |
| 182 | 196 | public function addOAuthAccount(UserOAuthInterface $oauth); |
| 183 | 197 | } |
@@ -13,8 +13,6 @@ |
||
| 13 | 13 | |
| 14 | 14 | use Behat\Mink\Driver\Selenium2Driver; |
| 15 | 15 | use Behat\Mink\Exception\ElementNotFoundException; |
| 16 | -use Sylius\Behat\Behaviour\ChoosesCalculator; |
|
| 17 | -use Sylius\Behat\Behaviour\SpecifiesItsAmount; |
|
| 18 | 16 | use Sylius\Behat\Behaviour\SpecifiesItsCode; |
| 19 | 17 | use Sylius\Behat\Page\Admin\Crud\CreatePage as BaseCreatePage; |
| 20 | 18 | use Sylius\Component\Core\Formatter\StringInflector; |
@@ -18,5 +18,8 @@ |
||
| 18 | 18 | */ |
| 19 | 19 | interface PasswordUpdaterInterface |
| 20 | 20 | { |
| 21 | + /** |
|
| 22 | + * @return void |
|
| 23 | + */ |
|
| 21 | 24 | public function updatePassword(CredentialsHolderInterface $user); |
| 22 | 25 | } |
@@ -103,7 +103,6 @@ |
||
| 103 | 103 | |
| 104 | 104 | /** |
| 105 | 105 | * @param int $price |
| 106 | - * @param string $currencyCode |
|
| 107 | 106 | * |
| 108 | 107 | * @return float |
| 109 | 108 | */ |
@@ -57,33 +57,33 @@ |
||
| 57 | 57 | |
| 58 | 58 | $m = 0; |
| 59 | 59 | foreach ($order->getItems() as $item) { |
| 60 | - $details['L_PAYMENTREQUEST_0_NAME'.$m] = $item->getVariant()->getProduct()->getName(); |
|
| 61 | - $details['L_PAYMENTREQUEST_0_AMT'.$m] = $this->formatPrice($item->getDiscountedUnitPrice()); |
|
| 62 | - $details['L_PAYMENTREQUEST_0_QTY'.$m] = $item->getQuantity(); |
|
| 60 | + $details['L_PAYMENTREQUEST_0_NAME' . $m] = $item->getVariant()->getProduct()->getName(); |
|
| 61 | + $details['L_PAYMENTREQUEST_0_AMT' . $m] = $this->formatPrice($item->getDiscountedUnitPrice()); |
|
| 62 | + $details['L_PAYMENTREQUEST_0_QTY' . $m] = $item->getQuantity(); |
|
| 63 | 63 | |
| 64 | 64 | ++$m; |
| 65 | 65 | } |
| 66 | 66 | |
| 67 | 67 | if (0 !== $taxTotal = $order->getAdjustmentsTotalRecursively(AdjustmentInterface::TAX_ADJUSTMENT)) { |
| 68 | - $details['L_PAYMENTREQUEST_0_NAME'.$m] = 'Tax Total'; |
|
| 69 | - $details['L_PAYMENTREQUEST_0_AMT'.$m] = $this->formatPrice($taxTotal); |
|
| 70 | - $details['L_PAYMENTREQUEST_0_QTY'.$m] = 1; |
|
| 68 | + $details['L_PAYMENTREQUEST_0_NAME' . $m] = 'Tax Total'; |
|
| 69 | + $details['L_PAYMENTREQUEST_0_AMT' . $m] = $this->formatPrice($taxTotal); |
|
| 70 | + $details['L_PAYMENTREQUEST_0_QTY' . $m] = 1; |
|
| 71 | 71 | |
| 72 | 72 | ++$m; |
| 73 | 73 | } |
| 74 | 74 | |
| 75 | 75 | if (0 !== $promotionTotal = $order->getOrderPromotionTotal()) { |
| 76 | - $details['L_PAYMENTREQUEST_0_NAME'.$m] = 'Discount'; |
|
| 77 | - $details['L_PAYMENTREQUEST_0_AMT'.$m] = $this->formatPrice($promotionTotal); |
|
| 78 | - $details['L_PAYMENTREQUEST_0_QTY'.$m] = 1; |
|
| 76 | + $details['L_PAYMENTREQUEST_0_NAME' . $m] = 'Discount'; |
|
| 77 | + $details['L_PAYMENTREQUEST_0_AMT' . $m] = $this->formatPrice($promotionTotal); |
|
| 78 | + $details['L_PAYMENTREQUEST_0_QTY' . $m] = 1; |
|
| 79 | 79 | |
| 80 | 80 | ++$m; |
| 81 | 81 | } |
| 82 | 82 | |
| 83 | 83 | if (0 !== $shippingTotal = $order->getShippingTotal()) { |
| 84 | - $details['L_PAYMENTREQUEST_0_NAME'.$m] = 'Shipping Total'; |
|
| 85 | - $details['L_PAYMENTREQUEST_0_AMT'.$m] = $this->formatPrice($shippingTotal); |
|
| 86 | - $details['L_PAYMENTREQUEST_0_QTY'.$m] = 1; |
|
| 84 | + $details['L_PAYMENTREQUEST_0_NAME' . $m] = 'Shipping Total'; |
|
| 85 | + $details['L_PAYMENTREQUEST_0_AMT' . $m] = $this->formatPrice($shippingTotal); |
|
| 86 | + $details['L_PAYMENTREQUEST_0_QTY' . $m] = 1; |
|
| 87 | 87 | } |
| 88 | 88 | |
| 89 | 89 | $request->setResult($details); |
@@ -16,7 +16,6 @@ |
||
| 16 | 16 | use Symfony\Component\DependencyInjection\ContainerBuilder; |
| 17 | 17 | use Symfony\Component\DependencyInjection\Loader\XmlFileLoader; |
| 18 | 18 | use Symfony\Component\DependencyInjection\Parameter; |
| 19 | -use Symfony\Component\DependencyInjection\Reference; |
|
| 20 | 19 | |
| 21 | 20 | /** |
| 22 | 21 | * @author Paweł Jędrzejewski <[email protected]> |
@@ -27,6 +27,7 @@ discard block |
||
| 27 | 27 | |
| 28 | 28 | /** |
| 29 | 29 | * @param OptionInterface $option |
| 30 | + * @return void |
|
| 30 | 31 | */ |
| 31 | 32 | public function setOption(OptionInterface $option = null); |
| 32 | 33 | |
@@ -41,6 +42,7 @@ discard block |
||
| 41 | 42 | * Set internal value. |
| 42 | 43 | * |
| 43 | 44 | * @param string $value |
| 45 | + * @return void |
|
| 44 | 46 | */ |
| 45 | 47 | public function setValue($value); |
| 46 | 48 | |
@@ -41,6 +41,7 @@ discard block |
||
| 41 | 41 | |
| 42 | 42 | /** |
| 43 | 43 | * @param null|TaxonInterface $taxon |
| 44 | + * @return void |
|
| 44 | 45 | */ |
| 45 | 46 | public function setParent(TaxonInterface $taxon = null); |
| 46 | 47 | |
@@ -63,11 +64,13 @@ discard block |
||
| 63 | 64 | |
| 64 | 65 | /** |
| 65 | 66 | * @param TaxonInterface $taxon |
| 67 | + * @return void |
|
| 66 | 68 | */ |
| 67 | 69 | public function addChild(TaxonInterface $taxon); |
| 68 | 70 | |
| 69 | 71 | /** |
| 70 | 72 | * @param TaxonInterface $taxon |
| 73 | + * @return void |
|
| 71 | 74 | */ |
| 72 | 75 | public function removeChild(TaxonInterface $taxon); |
| 73 | 76 | |
@@ -78,6 +81,7 @@ discard block |
||
| 78 | 81 | |
| 79 | 82 | /** |
| 80 | 83 | * @param string $name |
| 84 | + * @return void |
|
| 81 | 85 | */ |
| 82 | 86 | public function setName($name); |
| 83 | 87 | |
@@ -88,6 +92,7 @@ discard block |
||
| 88 | 92 | |
| 89 | 93 | /** |
| 90 | 94 | * @param string $permalink |
| 95 | + * @return void |
|
| 91 | 96 | */ |
| 92 | 97 | public function setPermalink($permalink); |
| 93 | 98 | |
@@ -98,6 +103,7 @@ discard block |
||
| 98 | 103 | |
| 99 | 104 | /** |
| 100 | 105 | * @param int $left |
| 106 | + * @return void |
|
| 101 | 107 | */ |
| 102 | 108 | public function setLeft($left); |
| 103 | 109 | |
@@ -108,6 +114,7 @@ discard block |
||
| 108 | 114 | |
| 109 | 115 | /** |
| 110 | 116 | * @param int $right |
| 117 | + * @return void |
|
| 111 | 118 | */ |
| 112 | 119 | public function setRight($right); |
| 113 | 120 | |
@@ -118,6 +125,7 @@ discard block |
||
| 118 | 125 | |
| 119 | 126 | /** |
| 120 | 127 | * @param int $level |
| 128 | + * @return void |
|
| 121 | 129 | */ |
| 122 | 130 | public function setLevel($level); |
| 123 | 131 | } |