| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 11 | 
| Code Lines | 5 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 28 | public function isEnabled(): bool  | 
            ||
| 29 |     { | 
            ||
| 30 | $applePayConfig = $this->mollieGatewayConfigurationRepository->findOneBy([  | 
            ||
| 31 | 'methodId' => PaymentMethod::APPLEPAY,  | 
            ||
| 32 | ]);  | 
            ||
| 33 | |||
| 34 |         if ($applePayConfig instanceof MollieGatewayConfigInterface) { | 
            ||
| 35 | return $applePayConfig->isApplePayDirectButton();  | 
            ||
| 
                                                                                                    
                        
                         | 
                |||
| 36 | }  | 
            ||
| 37 | |||
| 38 | return false;  | 
            ||
| 39 | }  | 
            ||
| 41 |