Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
| CompositeValueObjectWithOptionalFields | n/a |
0 / 0 |
n/a |
0 / 0 |
0 | n/a |
0 / 0 |
|||
| 1 | <?php |
| 2 | namespace Apie\Fixtures\ValueObjects; |
| 3 | |
| 4 | use Apie\Core\Attributes\Internal; |
| 5 | use Apie\Core\Attributes\Optional; |
| 6 | use Apie\Core\ValueObjects\CompositeValueObject; |
| 7 | use Apie\Core\ValueObjects\Interfaces\ValueObjectInterface; |
| 8 | |
| 9 | class CompositeValueObjectWithOptionalFields implements ValueObjectInterface |
| 10 | { |
| 11 | use CompositeValueObject; |
| 12 | |
| 13 | private ?string $withDefaultValue = 'default value'; |
| 14 | |
| 15 | #[Optional] |
| 16 | private string $withOptionalAttribute; |
| 17 | |
| 18 | #[Internal] |
| 19 | private ?string $isInternal = 'internal'; |
| 20 | |
| 21 | private static ?string $isStatic = 'static'; |
| 22 | } |