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 |
| ParameterMetadata | |
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 | declare(strict_types=1); |
| 4 | |
| 5 | namespace Celemas\Quma\Hydration; |
| 6 | |
| 7 | /** @internal */ |
| 8 | final readonly class ParameterMetadata |
| 9 | { |
| 10 | /** |
| 11 | * @param non-empty-string $name |
| 12 | * @param non-empty-string $column |
| 13 | */ |
| 14 | // @mago-expect lint:excessive-parameter-list Metadata mirrors the normalized constructor parameter shape. |
| 15 | public function __construct( |
| 16 | public string $name, |
| 17 | public string $column, |
| 18 | public TypeMetadata $type, |
| 19 | public bool $nullable, |
| 20 | public bool $hasDefault, |
| 21 | public mixed $defaultValue, |
| 22 | public int $position, |
| 23 | ) {} |
| 24 | } |
Below are the source code lines that represent each code branch as identified by Xdebug. Please note a branch is not
necessarily coterminous with a line, a line may contain multiple branches and therefore show up more than once.
Please also be aware that some branches may be implicit rather than explicit, e.g. an if statement
always has an else as part of its logical flow even if you didn't write one.
| 16 | public string $name, |
| 17 | public string $column, |
| 18 | public TypeMetadata $type, |
| 19 | public bool $nullable, |
| 20 | public bool $hasDefault, |
| 21 | public mixed $defaultValue, |
| 22 | public int $position, |
| 23 | ) {} |