Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
2 / 2 |
|
100.00% |
2 / 2 |
CRAP | |
100.00% |
1 / 1 |
Human | |
100.00% |
2 / 2 |
|
100.00% |
2 / 2 |
2 | |
100.00% |
1 / 1 |
__construct | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getLastName | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 |
1 | <?php |
2 | namespace Apie\IntegrationTests\Apie\TypeDemo\Entities; |
3 | |
4 | use Apie\IntegrationTests\Apie\TypeDemo\Identifiers\AnimalIdentifier; |
5 | use Apie\TextValueObjects\FirstName; |
6 | use Apie\TextValueObjects\LastName; |
7 | |
8 | final class Human extends Mammal |
9 | { |
10 | public function __construct( |
11 | AnimalIdentifier $id, |
12 | FirstName $animalName, |
13 | private readonly LastName $lastName |
14 | ) { |
15 | parent::__construct($id, $animalName); |
16 | } |
17 | |
18 | public function getLastName(): LastName |
19 | { |
20 | return $this->lastName; |
21 | } |
22 | } |