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