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\Core\Attributes\Description; |
5 | use Apie\IntegrationTests\Apie\TypeDemo\Identifiers\AnimalIdentifier; |
6 | use Apie\TextValueObjects\FirstName; |
7 | use Apie\TextValueObjects\LastName; |
8 | |
9 | #[Description('Humans have a last name and a first name described as animalName')] |
10 | final class Human extends Mammal |
11 | { |
12 | public function __construct( |
13 | AnimalIdentifier $id, |
14 | FirstName $animalName, |
15 | private readonly LastName $lastName |
16 | ) { |
17 | parent::__construct($id, $animalName); |
18 | } |
19 | |
20 | public function getLastName(): LastName |
21 | { |
22 | return $this->lastName; |
23 | } |
24 | } |