Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
41 | public function isEligible(PromotionSubjectInterface $subject, array $configuration) |
||
42 | { |
||
43 | Assert::isInstanceOf($subject, OrderInterface::class); |
||
44 | |||
45 | $channelCode = $subject->getChannel()->getCode(); |
||
46 | if (!isset($configuration[$channelCode])) { |
||
47 | return false; |
||
48 | } |
||
49 | |||
50 | return $this->itemTotalRuleChecker->isEligible($subject, $configuration[$channelCode]); |
||
51 | } |
||
52 | |||
61 |