Conditions | 3 |
Paths | 2 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 0 |
1 | <?php |
||
18 | public function __construct( |
||
19 | ?Person $first_person = null, |
||
20 | ?Person $second_person = null |
||
21 | ) { |
||
22 | if (null === $first_person || null === $second_person) |
||
23 | { |
||
24 | return; |
||
25 | } |
||
26 | |||
27 | $this->older_person = $this->getOlderPerson($first_person, $second_person); |
||
28 | $this->younger_person = $this->getYoungerPerson($first_person, $second_person); |
||
29 | } |
||
30 | |||
56 |