1 | <?php |
||
12 | final class FindCoupleByBirthdayDistance |
||
13 | { |
||
14 | /** @var Person[] */ |
||
15 | private $people; |
||
16 | |||
17 | /** @var CoupleCollection */ |
||
18 | private $couples; |
||
19 | |||
20 | /** @var BirthdayDistanceCriteria */ |
||
21 | private $birthday_distance_criteria; |
||
22 | |||
23 | 6 | public function __construct(array $people) |
|
28 | |||
29 | 6 | public function findByBirthdaysDistance(int $find_criteria): Couple |
|
39 | |||
40 | 4 | private function getBestMatchCouple(): Couple |
|
52 | } |
||
53 |