@@ -47,8 +47,8 @@ discard block |
||
47 | 47 | } |
48 | 48 | |
49 | 49 | /** |
50 | - * @param $person |
|
51 | - * @param $person_to_compare_with |
|
50 | + * @param Person $person |
|
51 | + * @param Person $person_to_compare_with |
|
52 | 52 | * |
53 | 53 | * @return Comparator |
54 | 54 | */ |
@@ -81,6 +81,9 @@ discard block |
||
81 | 81 | return $person->birthDate < $person_to_compare_with->birthDate; |
82 | 82 | } |
83 | 83 | |
84 | + /** |
|
85 | + * @param Comparator $result |
|
86 | + */ |
|
84 | 87 | private function addAgeDifference($result) |
85 | 88 | { |
86 | 89 | $result->age_difference = $result->second_person->birthDate->getTimestamp() - $result->first_person->birthDate->getTimestamp(); |