Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
28 | public function getConfigFromMethodId(string $methodId): MollieGatewayConfigInterface |
||
29 | { |
||
30 | $paymentMethod = $this->mollieMethodRepository->findOneBy(['methodId' => $methodId]); |
||
31 | |||
32 | Assert::notNull($paymentMethod, sprintf('Cannot find payment method config with method id %s', $methodId)); |
||
33 | |||
34 | return $paymentMethod; |
||
|
|||
35 | } |
||
37 |