| Conditions | 3 |
| Paths | 3 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 33 | public function toOptionArray(): array |
||
| 34 | { |
||
| 35 | $allowed = $this->getAllowedTypes(); |
||
| 36 | $options = []; |
||
| 37 | |||
| 38 | foreach ($this->_paymentConfig->getCcTypes() as $code => $name) { |
||
| 39 | if (in_array($code, $allowed)) { |
||
| 40 | $options[] = ['value' => $code, 'label' => $name]; |
||
| 41 | } |
||
| 42 | } |
||
| 43 | |||
| 44 | return $options; |
||
| 45 | } |
||
| 47 |