@@ -16,7 +16,7 @@ |
||
| 16 | 16 | { |
| 17 | 17 | /** |
| 18 | 18 | * @param \Madkom\RegistryApplication\Domain\CarManagement\Insurances\Insurance $newInsurance |
| 19 | - * @return true|false |
|
| 19 | + * @return boolean |
|
| 20 | 20 | */ |
| 21 | 21 | public function checkForDuplicates(array $existingInsurance, Insurance $newInsurance) |
| 22 | 22 | { |
@@ -14,12 +14,13 @@ |
||
| 14 | 14 | class InsuranceFactory |
| 15 | 15 | { |
| 16 | 16 | /** |
| 17 | - * @param $insuranceType |
|
| 18 | - * @param $dateFrom |
|
| 19 | - * @param $dateTo |
|
| 20 | - * @param $insuranceId |
|
| 17 | + * @param string $insuranceType |
|
| 18 | + * @param \DateTime $dateFrom |
|
| 19 | + * @param \DateTime $dateTo |
|
| 20 | + * @param string $insuranceId |
|
| 21 | + * @param string $insurerId |
|
| 21 | 22 | * |
| 22 | - * @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 |
|
| 23 | + * @return Insurance |
|
| 23 | 24 | * @throws \Madkom\RegistryApplication\Domain\CarManagement\Insurances\Exceptions\EmptyInsuranceDateException |
| 24 | 25 | * @throws \Madkom\RegistryApplication\Domain\CarManagement\Insurances\Exceptions\UnknownInsuranceTypeException |
| 25 | 26 | * @throws \InvalidArgumentException |