1 | <?php |
||
9 | final class Person |
||
10 | { |
||
11 | /** @var string */ |
||
12 | private $name; |
||
13 | |||
14 | /** @var DateTime */ |
||
15 | private $birth_date; |
||
16 | |||
17 | 6 | public function __construct($a_name, DateTime $a_birth_date) |
|
22 | |||
23 | public function name(): string |
||
27 | |||
28 | 4 | public function birthDate(): DateTime |
|
32 | |||
33 | 5 | public function equals(Person $other_person) |
|
38 | } |
||
39 |