Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
| OptionalExampleDto | n/a |
0 / 0 |
n/a |
0 / 0 |
0 | n/a |
0 / 0 |
|||
| 1 | <?php |
| 2 | namespace Apie\Fixtures\Dto; |
| 3 | |
| 4 | use Apie\Core\Attributes\Optional; |
| 5 | use Apie\Core\Dto\DtoInterface; |
| 6 | use Apie\Fixtures\Enums\Gender; |
| 7 | |
| 8 | class OptionalExampleDto implements DtoInterface |
| 9 | { |
| 10 | #[Optional()] |
| 11 | public ?string $optionalString; |
| 12 | |
| 13 | #[Optional()] |
| 14 | public ?int $optionalInteger; |
| 15 | |
| 16 | #[Optional()] |
| 17 | public ?float $optionalFloatingPoint; |
| 18 | |
| 19 | #[Optional()] |
| 20 | public ?bool $optionalTrueOrFalse; |
| 21 | |
| 22 | #[Optional()] |
| 23 | public mixed $mixed; |
| 24 | |
| 25 | #[Optional()] |
| 26 | public $noType; |
| 27 | |
| 28 | #[Optional()] |
| 29 | public ?Gender $optionalGender; |
| 30 | } |