| Conditions | 3 |
| Paths | 3 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 27 | public function match(RuleScope $scope): bool |
||
| 28 | { |
||
| 29 | if (!$scope instanceof CheckoutRuleScope) { |
||
| 30 | return false; |
||
| 31 | } |
||
| 32 | |||
| 33 | $customer = $scope->getSalesChannelContext()->getCustomer(); |
||
| 34 | if (!$customer) { |
||
| 35 | return false; |
||
| 36 | } |
||
| 37 | |||
| 38 | return $this->isActive === $customer->getActive(); |
||
| 39 | } |
||
| 59 |