Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
| Definition | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
| __construct | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace Cosray\Field; |
| 6 | |
| 7 | use ReflectionProperty; |
| 8 | |
| 9 | final readonly class Definition |
| 10 | { |
| 11 | /** |
| 12 | * @param class-string<Field> $type |
| 13 | */ |
| 14 | public function __construct( |
| 15 | public string $name, |
| 16 | public string $type, |
| 17 | public ReflectionProperty $property, |
| 18 | public ?string $embedded = null, |
| 19 | ) {} |
| 20 | } |