| Code Coverage | ||||||||||
| Lines | Functions and Methods | Classes and Traits | ||||||||
| Total |  | 100.00% | 2 / 2 |  | 100.00% | 2 / 2 | CRAP |  | 100.00% | 1 / 1 | 
| CompositeValueObjectWithUnionType |  | 100.00% | 2 / 2 |  | 100.00% | 2 / 2 | 2 |  | 100.00% | 1 / 1 | 
| getStringFirst |  | 100.00% | 1 / 1 |  | 100.00% | 1 / 1 | 1 | |||
| getIntFirst |  | 100.00% | 1 / 1 |  | 100.00% | 1 / 1 | 1 | |||
| 1 | <?php | 
| 2 | namespace Apie\Fixtures\ValueObjects; | 
| 3 | |
| 4 | use Apie\Core\ValueObjects\CompositeValueObject; | 
| 5 | use Apie\Core\ValueObjects\Interfaces\ValueObjectInterface; | 
| 6 | |
| 7 | class CompositeValueObjectWithUnionType implements ValueObjectInterface | 
| 8 | { | 
| 9 | use CompositeValueObject; | 
| 10 | |
| 11 | private string|int $stringFirst; | 
| 12 | |
| 13 | private int|string $intFirst; | 
| 14 | |
| 15 | public function getStringFirst(): string|int | 
| 16 | { | 
| 17 | return $this->stringFirst; | 
| 18 | } | 
| 19 | |
| 20 | public function getIntFirst(): int|string | 
| 21 | { | 
| 22 | return $this->intFirst; | 
| 23 | } | 
| 24 | } |