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 |
| NickDto | |
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\OffenseLevel; |
| 6 | use App\Enum\WordGender; |
| 7 | |
| 8 | /** |
| 9 | * @author Wilhelm Zwertvaegher |
| 10 | */ |
| 11 | readonly class NickDto |
| 12 | { |
| 13 | /** |
| 14 | * @param array<NickWordDto> $words |
| 15 | */ |
| 16 | public function __construct( |
| 17 | public int $id, |
| 18 | public WordGender $gender, |
| 19 | public OffenseLevel $offenseLevel, |
| 20 | public array $words = [], |
| 21 | ) { |
| 22 | } |
| 23 | } |