@@ -299,7 +299,7 @@ discard block |
||
299 | 299 | } |
300 | 300 | |
301 | 301 | /** |
302 | - * @return \Spryker\Zed\Development\Business\DependencyTree\DependencyFinder\LocatorClient |
|
302 | + * @return LocatorService |
|
303 | 303 | */ |
304 | 304 | protected function createLocatorServiceChecker() |
305 | 305 | { |
@@ -895,7 +895,7 @@ discard block |
||
895 | 895 | } |
896 | 896 | |
897 | 897 | /** |
898 | - * @return \Spryker\Zed\Development\Business\IdeAutoCompletion\Bundle\MethodBuilder\BundleMethodBuilderInterface[] |
|
898 | + * @return IdeAutoCompletion\Bundle\MethodBuilder\BundleMethodBuilderInterface[] |
|
899 | 899 | */ |
900 | 900 | protected function getYvesIdeAutoCompletionMethodBuilderStack() |
901 | 901 | { |
@@ -906,7 +906,7 @@ discard block |
||
906 | 906 | } |
907 | 907 | |
908 | 908 | /** |
909 | - * @return \Spryker\Zed\Development\Business\IdeAutoCompletion\Bundle\MethodBuilder\BundleMethodBuilderInterface[] |
|
909 | + * @return IdeAutoCompletion\Bundle\MethodBuilder\BundleMethodBuilderInterface[] |
|
910 | 910 | */ |
911 | 911 | protected function getZedIdeAutoCompletionMethodBuilderStack() |
912 | 912 | { |
@@ -918,7 +918,7 @@ discard block |
||
918 | 918 | } |
919 | 919 | |
920 | 920 | /** |
921 | - * @return \Spryker\Zed\Development\Business\IdeAutoCompletion\Bundle\MethodBuilder\BundleMethodBuilderInterface[] |
|
921 | + * @return IdeAutoCompletion\Bundle\MethodBuilder\BundleMethodBuilderInterface[] |
|
922 | 922 | */ |
923 | 923 | protected function getClientIdeAutoCompletionMethodBuilderStack() |
924 | 924 | { |
@@ -928,7 +928,7 @@ discard block |
||
928 | 928 | } |
929 | 929 | |
930 | 930 | /** |
931 | - * @return \Spryker\Zed\Development\Business\IdeAutoCompletion\Bundle\MethodBuilder\BundleMethodBuilderInterface[] |
|
931 | + * @return IdeAutoCompletion\Bundle\MethodBuilder\BundleMethodBuilderInterface[] |
|
932 | 932 | */ |
933 | 933 | protected function getServiceIdeAutoCompletionMethodBuilderStack() |
934 | 934 | { |
@@ -1001,7 +1001,7 @@ discard block |
||
1001 | 1001 | /** |
1002 | 1002 | * @param array $options |
1003 | 1003 | * |
1004 | - * @return \Spryker\Zed\Development\Business\IdeAutoCompletion\Generator\GeneratorInterface[] |
|
1004 | + * @return IdeAutoCompletion\Generator\GeneratorInterface[] |
|
1005 | 1005 | */ |
1006 | 1006 | protected function getIdeAutoCompletionGeneratorStack(array $options) |
1007 | 1007 | { |
@@ -116,8 +116,8 @@ |
||
116 | 116 | } |
117 | 117 | |
118 | 118 | /** |
119 | - * @param \ArrayObject|\Generated\Shared\Transfer\IdeAutoCompletionBundleMethodTransfer[] $existingMethodTransferCollection |
|
120 | - * @param \ArrayObject|\Generated\Shared\Transfer\IdeAutoCompletionBundleMethodTransfer[] $methodTransferCollection |
|
119 | + * @param ArrayObject $existingMethodTransferCollection |
|
120 | + * @param ArrayObject $methodTransferCollection |
|
121 | 121 | * |
122 | 122 | * @return \ArrayObject|\Generated\Shared\Transfer\IdeAutoCompletionBundleMethodTransfer[] |
123 | 123 | */ |
@@ -147,7 +147,7 @@ |
||
147 | 147 | } |
148 | 148 | |
149 | 149 | /** |
150 | - * @return \Spryker\Zed\Discount\Dependency\Plugin\DiscountCalculatorPluginInterface[]|\Spryker\Zed\Discount\Dependency\Plugin\DiscountAmountCalculatorPluginInterface[] |
|
150 | + * @return \Spryker\Zed\Discount\Dependency\Plugin\DiscountAmountCalculatorPluginInterface[] |
|
151 | 151 | */ |
152 | 152 | public function getCalculatorPlugins() |
153 | 153 | { |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | * @param \Generated\Shared\Transfer\QuoteTransfer $quoteTransfer |
134 | 134 | * @param \Generated\Shared\Transfer\ClauseTransfer $clauseTransfer |
135 | 135 | * |
136 | - * @return array |
|
136 | + * @return \Generated\Shared\Transfer\DiscountableItemTransfer[] |
|
137 | 137 | */ |
138 | 138 | public function collectBySku(QuoteTransfer $quoteTransfer, ClauseTransfer $clauseTransfer) |
139 | 139 | { |
@@ -545,7 +545,7 @@ discard block |
||
545 | 545 | * |
546 | 546 | * @param string[] $voucherCodes |
547 | 547 | * |
548 | - * @return bool |
|
548 | + * @return integer |
|
549 | 549 | */ |
550 | 550 | public function releaseUsedVoucherCodes(array $voucherCodes) |
551 | 551 | { |
@@ -561,7 +561,7 @@ discard block |
||
561 | 561 | * |
562 | 562 | * @param string[] $voucherCodes |
563 | 563 | * |
564 | - * @return bool |
|
564 | + * @return integer |
|
565 | 565 | */ |
566 | 566 | public function useVoucherCodes(array $voucherCodes) |
567 | 567 | { |
@@ -236,8 +236,8 @@ discard block |
||
236 | 236 | ClauseTransfer $clauseTransfer |
237 | 237 | ) { |
238 | 238 | return $this->getFactory() |
239 | - ->createCalendarWeekDecisionRule() |
|
240 | - ->isSatisfiedBy($quoteTransfer, $itemTransfer, $clauseTransfer); |
|
239 | + ->createCalendarWeekDecisionRule() |
|
240 | + ->isSatisfiedBy($quoteTransfer, $itemTransfer, $clauseTransfer); |
|
241 | 241 | } |
242 | 242 | |
243 | 243 | /** |
@@ -659,9 +659,9 @@ discard block |
||
659 | 659 | ClauseTransfer $clauseTransfer |
660 | 660 | ) { |
661 | 661 | |
662 | - return $this->getFactory() |
|
663 | - ->createPriceModeDecisionRule() |
|
664 | - ->isSatisfiedBy($quoteTransfer, $itemTransfer, $clauseTransfer); |
|
662 | + return $this->getFactory() |
|
663 | + ->createPriceModeDecisionRule() |
|
664 | + ->isSatisfiedBy($quoteTransfer, $itemTransfer, $clauseTransfer); |
|
665 | 665 | } |
666 | 666 | |
667 | 667 | } |
@@ -127,7 +127,7 @@ |
||
127 | 127 | } |
128 | 128 | |
129 | 129 | /** |
130 | - * @param \Spryker\Zed\Discount\Dependency\Plugin\DecisionRulePluginInterface|\Spryker\Zed\Discount\Dependency\Plugin\DiscountRuleWithAttributesPluginInterface $specificationPlugin |
|
130 | + * @param DiscountRuleWithAttributesPluginInterface $specificationPlugin |
|
131 | 131 | * |
132 | 132 | * @return array |
133 | 133 | */ |
@@ -228,7 +228,7 @@ discard block |
||
228 | 228 | } |
229 | 229 | |
230 | 230 | /** |
231 | - * @return \Spryker\Zed\Discount\Dependency\Plugin\DecisionRulePluginInterface[] |
|
231 | + * @return SkuDecisionRulePlugin[] |
|
232 | 232 | */ |
233 | 233 | protected function createDecisionRulePlugins() |
234 | 234 | { |
@@ -248,7 +248,7 @@ discard block |
||
248 | 248 | } |
249 | 249 | |
250 | 250 | /** |
251 | - * @return \Spryker\Zed\Discount\Dependency\Plugin\CollectorPluginInterface[] |
|
251 | + * @return ItemBySkuCollectorPlugin[] |
|
252 | 252 | */ |
253 | 253 | protected function createCollectorPlugins() |
254 | 254 | { |
@@ -582,7 +582,7 @@ discard block |
||
582 | 582 | } |
583 | 583 | |
584 | 584 | /** |
585 | - * @return \PHPUnit_Framework_MockObject_MockObject|\Spryker\Zed\Discount\Dependency\Plugin\DiscountCalculatorPluginInterface |
|
585 | + * @return DiscountCalculatorPluginInterface|null |
|
586 | 586 | */ |
587 | 587 | protected function createCalculatorPluginMock() |
588 | 588 | { |
@@ -252,7 +252,7 @@ |
||
252 | 252 | */ |
253 | 253 | protected function createCollectorPlugins() |
254 | 254 | { |
255 | - $collectorProviderPlugins[] = new ItemBySkuCollectorPlugin(); |
|
255 | + $collectorProviderPlugins[] = new ItemBySkuCollectorPlugin(); |
|
256 | 256 | |
257 | 257 | return $collectorProviderPlugins; |
258 | 258 | } |
@@ -486,7 +486,7 @@ discard block |
||
486 | 486 | |
487 | 487 | $calculatorMock |
488 | 488 | ->method('calculateDiscount') |
489 | - ->willReturnCallback(function ($discountableItems, DiscountTransfer $discountTransfer) { |
|
489 | + ->willReturnCallback(function($discountableItems, DiscountTransfer $discountTransfer) { |
|
490 | 490 | return $discountTransfer->getAmount(); |
491 | 491 | }); |
492 | 492 | |
@@ -550,7 +550,7 @@ discard block |
||
550 | 550 | $calculatorPluginMock = $this->createCalculatorPluginMock(); |
551 | 551 | $calculatorPluginMock |
552 | 552 | ->method('calculateDiscount') |
553 | - ->willReturnCallback(function ($discountableItems, DiscountTransfer $discountTransfer) { |
|
553 | + ->willReturnCallback(function($discountableItems, DiscountTransfer $discountTransfer) { |
|
554 | 554 | return $discountTransfer->getAmount(); |
555 | 555 | }); |
556 | 556 | } |
@@ -54,7 +54,7 @@ |
||
54 | 54 | /** |
55 | 55 | * @param \Spryker\Zed\Discount\Business\QueryString\ComparatorOperatorsInterface|null $comparatorMock |
56 | 56 | * |
57 | - * @return \Spryker\Zed\Discount\Business\Collector\ItemPriceCollector |
|
57 | + * @return ItemQuantityCollector |
|
58 | 58 | */ |
59 | 59 | protected function createItemQuantityCollector(ComparatorOperatorsInterface $comparatorMock = null) |
60 | 60 | { |
@@ -47,7 +47,7 @@ |
||
47 | 47 | /** |
48 | 48 | * @param \Spryker\Zed\Discount\Business\QueryString\ComparatorOperatorsInterface|null $comparatorMock |
49 | 49 | * |
50 | - * @return \Spryker\Zed\Discount\Business\DecisionRule\ItemSkuDecisionRule |
|
50 | + * @return ItemQuantityDecisionRule |
|
51 | 51 | */ |
52 | 52 | protected function createItemQuantityDecisionRule(ComparatorOperatorsInterface $comparatorMock = null) |
53 | 53 | { |
@@ -30,7 +30,7 @@ |
||
30 | 30 | public function testDecisionRuleWhenCurrentItemQuantityMatchesShouldReturnTrue() |
31 | 31 | { |
32 | 32 | $comparatorMock = $this->createComparatorMock(); |
33 | - $comparatorMock->method('compare')->willReturnCallback(function (ClauseTransfer $clauseTransfer, $itemQuantity) { |
|
33 | + $comparatorMock->method('compare')->willReturnCallback(function(ClauseTransfer $clauseTransfer, $itemQuantity) { |
|
34 | 34 | return $clauseTransfer->getValue() === $itemQuantity; |
35 | 35 | }); |
36 | 36 |
@@ -53,7 +53,7 @@ |
||
53 | 53 | /** |
54 | 54 | * @param \Spryker\Zed\Discount\Business\QueryString\ComparatorOperatorsInterface|null $comparatorMock |
55 | 55 | * |
56 | - * @return \Spryker\Zed\Discount\Business\DecisionRule\GrandTotalDecisionRule |
|
56 | + * @return TotalQuantityDecisionRule |
|
57 | 57 | */ |
58 | 58 | protected function createTotalQuantityDecisionRule(ComparatorOperatorsInterface $comparatorMock = null) |
59 | 59 | { |
@@ -30,7 +30,7 @@ |
||
30 | 30 | public function testWhenTotalQuantityMatchesClauseShouldReturnTrue() |
31 | 31 | { |
32 | 32 | $comparatorMock = $this->createComparatorMock(); |
33 | - $comparatorMock->method('compare')->willReturnCallback(function (ClauseTransfer $clauseTransfer, $grandTotal) { |
|
33 | + $comparatorMock->method('compare')->willReturnCallback(function(ClauseTransfer $clauseTransfer, $grandTotal) { |
|
34 | 34 | return $clauseTransfer->getValue() === $grandTotal; |
35 | 35 | }); |
36 | 36 |