| Conditions | 2 |
| Paths | 2 |
| Total Lines | 15 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 46 | public function toConvertedPaymentOptions() |
||
| 47 | { |
||
| 48 | $result = array(); |
||
| 49 | $baseData = $this->toArray(); |
||
| 50 | |||
| 51 | foreach ($this->getVariants() as $variant) { |
||
| 52 | $convertedOption = new ConvertedPaymentOptionEntity($baseData); |
||
| 53 | $convertedOption->setVariantId($variant->getId()); |
||
| 54 | $convertedOption->setAcceptFee($variant->getAcceptFee()); |
||
| 55 | $convertedOption->setVariantName($variant->getName()); |
||
| 56 | |||
| 57 | $result[$variant->getId()] = $convertedOption; |
||
| 58 | } |
||
| 59 | |||
| 60 | return $result; |
||
| 61 | } |
||
| 63 |