Conditions | 3 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
54 | public function build(array $buildSubject): array |
||
55 | { |
||
56 | if (!isset($buildSubject['payment']) |
||
57 | || !$buildSubject['payment'] instanceof PaymentDataObjectInterface |
||
58 | ) { |
||
59 | throw new InvalidArgumentException('Payment data object should be provided'); |
||
60 | } |
||
61 | |||
62 | return [ |
||
63 | self::DYNAMIC_MCC => $this->config->getMerchantGatewayDynamicMcc(), |
||
64 | ]; |
||
67 |