| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | public function convertDTOToMangoPayWallet(Wallet $walletDto) |
||
| 20 | { |
||
| 21 | $mangoWallet = new MangoWallet(); |
||
| 22 | $mangoWallet->Tag = $walletDto->getTag(); |
||
| 23 | $mangoWallet->Owners = $walletDto->getOwenerIds(); |
||
| 24 | $mangoWallet->Description = $walletDto->getDescription(); |
||
| 25 | $mangoWallet->Currency = $walletDto->getCurrency(); |
||
| 26 | if ($walletDto->getId()) { |
||
| 27 | $mangoWallet->Id = $walletDto->getId(); |
||
| 28 | } |
||
| 29 | return $mangoWallet; |
||
| 30 | } |
||
| 31 | |||
| 44 |