Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
15 | 3 | public function __construct( |
|
16 | ?string $name = null, |
||
17 | ?string $description = null, |
||
18 | public readonly ?string $type = null, |
||
19 | public readonly ?int $mode = null, |
||
20 | public readonly ?string $deprecationReason = null, |
||
21 | mixed $defaultValue = null, |
||
22 | ) { |
||
23 | 3 | parent::__construct($name, $description); |
|
24 | |||
25 | 3 | if (\func_num_args() >= 6) { |
|
26 | 2 | $this->defaultValue = $defaultValue; |
|
|
|||
27 | } |
||
35 |