Code Coverage |
||||||||||||||||
Lines |
Branches |
Paths |
Functions and Methods |
Classes and Traits |
||||||||||||
| Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
| FullWordDto | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
| __construct | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | |
| 3 | namespace App\Dto\Response; |
| 4 | |
| 5 | use App\Enum\GrammaticalRoleType; |
| 6 | use App\Enum\Lang; |
| 7 | use App\Enum\OffenseLevel; |
| 8 | use App\Enum\WordGender; |
| 9 | use App\Enum\WordStatus; |
| 10 | |
| 11 | /** |
| 12 | * @author Wilhelm Zwertvaegher |
| 13 | */ |
| 14 | final readonly class FullWordDto |
| 15 | { |
| 16 | /** |
| 17 | * @param array<value-of<GrammaticalRoleType>, QualifierDto|SubjectDto> $types |
| 18 | */ |
| 19 | public function __construct( |
| 20 | public int $id, |
| 21 | public string $label, |
| 22 | public string $slug, |
| 23 | public WordGender $gender, |
| 24 | public Lang $lang, |
| 25 | public OffenseLevel $offenseLevel, |
| 26 | public WordStatus $status, |
| 27 | public array $types, |
| 28 | ) { |
| 29 | } |
| 30 | } |