| Total Complexity | 3 |
| Total Lines | 19 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | class MonnifyPaymentMethods |
||
| 14 | { |
||
| 15 | |||
| 16 | private $monnifyPaymentMethods = []; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * MonnifyPaymentMethods constructor. |
||
| 20 | * @param MonnifyPaymentMethod[] $monnifyPaymentMethods |
||
| 21 | */ |
||
| 22 | public function __construct(MonnifyPaymentMethod ...$monnifyPaymentMethods) |
||
| 23 | { |
||
| 24 | foreach ($monnifyPaymentMethods as $method) { |
||
| 25 | $this->monnifyPaymentMethods[$method->getID()] = $method->getMethod(); |
||
| 26 | } |
||
| 27 | } |
||
| 28 | |||
| 29 | public function toArray(): array |
||
| 32 | } |
||
| 33 | } |
||
| 34 |