@@ -15,7 +15,7 @@ |
||
| 15 | 15 | /** |
| 16 | 16 | * @param \Madkom\RegistryApplication\Domain\CarManagement\Insurances\Insurance $newInsurance |
| 17 | 17 | * |
| 18 | - * @return true|false |
|
| 18 | + * @return boolean |
|
| 19 | 19 | */ |
| 20 | 20 | public function checkForDuplicates(array $existingInsurance, Insurance $newInsurance) |
| 21 | 21 | { |
@@ -12,17 +12,18 @@ |
||
| 12 | 12 | class InsuranceFactory |
| 13 | 13 | { |
| 14 | 14 | /** |
| 15 | - * @param $insuranceType |
|
| 16 | - * @param $dateFrom |
|
| 17 | - * @param $dateTo |
|
| 18 | - * @param $insuranceId |
|
| 15 | + * @param string $insuranceType |
|
| 16 | + * @param \DateTime $dateFrom |
|
| 17 | + * @param \DateTime $dateTo |
|
| 18 | + * @param string $insuranceId |
|
| 19 | + * @param string $insurerId |
|
| 19 | 20 | * |
| 20 | 21 | * @throws \Madkom\RegistryApplication\Domain\CarManagement\Insurances\Exceptions\EmptyInsuranceDateException |
| 21 | 22 | * @throws \Madkom\RegistryApplication\Domain\CarManagement\Insurances\Exceptions\UnknownInsuranceTypeException |
| 22 | 23 | * @throws \InvalidArgumentException |
| 23 | 24 | * @throws \Madkom\RegistryApplication\Domain\CarManagement\CarExceptions\InvalidDatesException |
| 24 | 25 | * |
| 25 | - * @return \Madkom\RegistryApplication\Domain\CarManagement\Insurances\AccidentInsurance|\Madkom\RegistryApplication\Domain\CarManagement\Insurances\AssistanceInsurance|\Madkom\RegistryApplication\Domain\CarManagement\Insurances\CarInsurance|\Madkom\RegistryApplication\Domain\CarManagement\Insurances\LiabilityInsurance |
|
| 26 | + * @return Insurance |
|
| 26 | 27 | */ |
| 27 | 28 | public function create($insuranceId, $insuranceType, $dateFrom, $dateTo, $insurerId) |
| 28 | 29 | { |