| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 31 | public function execute() |
||
| 32 | { |
||
| 33 | $car = $this->repository->find($this->carId); |
||
| 34 | $insurance = new InsuranceDocument($this->insuranceId, |
||
| 35 | $this->document->title, |
||
| 36 | $this->document->description, |
||
| 37 | $this->document->source |
||
| 38 | ); |
||
| 39 | |||
| 40 | $car->addInsuranceDocument($this->insuranceId, $insurance); |
||
| 41 | } |
||
| 42 | } |
||
| 43 |