| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | public function create(array $row) |
||
| 30 | { |
||
| 31 | $row['type'] = $this->createEntity(Type::class, $row['type']); |
||
| 32 | $row['target'] = $this->createEntity(Target::class, $row['target']); |
||
| 33 | $currency = new Currency(strtoupper($row['price']['currency'])); |
||
| 34 | $row['price'] = new Money($row['price']['amount'], $currency); |
||
| 35 | |||
| 36 | return parent::create($row); |
||
| 37 | } |
||
| 38 | |||
| 40 |