Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
29 | 6 | public function findByBirthdaysDistance(int $find_criteria): Couple |
|
30 | { |
||
31 | 6 | if (0 == count($this->couples)) { |
|
32 | 2 | return new CoupleEmpty(); |
|
33 | } |
||
34 | |||
35 | 4 | $this->birthday_distance_criteria = BirthdayDistanceCriteria::fromCriteriaParameter($find_criteria); |
|
36 | |||
37 | 4 | return $this->getBestMatchCouple(); |
|
38 | } |
||
39 | |||
53 |