| Conditions | 3 |
| Paths | 2 |
| Total Lines | 7 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 20 | public function resolve(MollieGatewayConfigInterface $paymentMethod, array $methods, OrderInterface $order): array |
||
| 21 | { |
||
| 22 | if ($order->getTotal() < $paymentMethod->getMinimumAmount() || |
||
| 23 | $order->getTotal() > $paymentMethod->getMaximumAmount()) { |
||
| 24 | return $this->removePaymentMethod($paymentMethod, $methods); |
||
| 25 | } |
||
| 26 | return $methods; |
||
| 27 | } |
||
| 41 |