@@ -53,8 +53,8 @@ discard block |
||
| 53 | 53 | } |
| 54 | 54 | |
| 55 | 55 | /** |
| 56 | - * @param $dateFrom |
|
| 57 | - * @param $dateTo |
|
| 56 | + * @param \DateTime $dateFrom |
|
| 57 | + * @param \DateTime $dateTo |
|
| 58 | 58 | * |
| 59 | 59 | * @throws \Madkom\RegistryApplication\Domain\CarManagement\Insurances\Exceptions\EmptyInsuranceDateException |
| 60 | 60 | */ |
@@ -66,8 +66,8 @@ discard block |
||
| 66 | 66 | } |
| 67 | 67 | |
| 68 | 68 | /** |
| 69 | - * @param $dateFrom |
|
| 70 | - * @param $dateTo |
|
| 69 | + * @param \DateTime $dateFrom |
|
| 70 | + * @param \DateTime $dateTo |
|
| 71 | 71 | * |
| 72 | 72 | * @throws \InvalidArgumentException |
| 73 | 73 | */ |
@@ -79,6 +79,10 @@ discard block |
||
| 79 | 79 | } |
| 80 | 80 | } |
| 81 | 81 | |
| 82 | + /** |
|
| 83 | + * @param \DateTime $dateFrom |
|
| 84 | + * @param \DateTime $dateTo |
|
| 85 | + */ |
|
| 82 | 86 | private function isEqualToOneYear($dateFrom, $dateTo) |
| 83 | 87 | { |
| 84 | 88 | $interval = $dateTo->diff($dateFrom); |