Lines
100.00%
1 / 1
Functions and Methods
100.00%
1 / 1
Classes and Traits
100.00%
1 / 1
| Name | Lines | Functions and Methods | CRAP | Classes and Traits | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| ServiceField | 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 Stewart\Codegen\Service; | |
| 6 | ||
| 7 | use Stewart\Codegen\Php\PhpType; | |
| 8 | ||
| 9 | final readonly class ServiceField | |
| 10 | { | |
| 11 | public function __construct( | |
| 12 | public string $name, | |
| 13 | public PhpType $type, | |
| 14 | public bool $required, | |
| 15 | public ?string $label, | |
| 16 | public ?string $description, | |
| 17 | public ?string $unit, | |
| 18 | public int|float|null $min, | |
| 19 | public int|float|null $max, | |
| 20 | ) {} | |
| 21 | } |