Code Coverage
 
Lines
Branches
Paths
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
1 / 1
FullWordDto
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 __construct
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3namespace App\Dto\Response;
4
5use App\Enum\GrammaticalRoleType;
6use App\Enum\Lang;
7use App\Enum\OffenseLevel;
8use App\Enum\WordGender;
9use App\Enum\WordStatus;
10
11/**
12 * @author Wilhelm Zwertvaegher
13 */
14final 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}

Paths

Below are the source code lines that represent each code path as identified by Xdebug. Please note a path is not necessarily coterminous with a line, a line may contain multiple paths and therefore show up more than once. Please also be aware that some paths may include implicit rather than explicit branches, e.g. an if statement always has an else as part of its logical flow even if you didn't write one.

FullWordDto->__construct
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    }
{main}
3namespace App\Dto\Response;
4
5use App\Enum\GrammaticalRoleType;
6use App\Enum\Lang;
7use App\Enum\OffenseLevel;
8use App\Enum\WordGender;
9use App\Enum\WordStatus;
10
11/**
12 * @author Wilhelm Zwertvaegher
13 */
14final 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    }