Total Complexity | 2 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
23 | class SplInt extends SplType |
||
24 | { |
||
25 | /** |
||
26 | * @var int |
||
27 | * |
||
28 | * @psalm-suppress InvalidClassConstantType |
||
29 | */ |
||
30 | // phpcs:ignore Generic.NamingConventions.UpperCaseConstantName.ClassConstantNotUpperCase |
||
31 | protected const __default = 0; |
||
32 | |||
33 | /** |
||
34 | * {@inheritdoc} |
||
35 | * |
||
36 | * @param int $initial_value |
||
37 | * |
||
38 | * @SuppressWarnings(PHPMD.CamelCaseParameterName) |
||
39 | * @SuppressWarnings(PHPMD.CamelCaseVariableName) |
||
40 | */ |
||
41 | 5 | public function __construct(int $initial_value = self::__default) |
|
42 | { |
||
43 | 5 | parent::__construct($initial_value); |
|
44 | } |
||
45 | |||
46 | 4 | final public function &__invoke(): int |
|
50 | } |
||
51 | } |
||
52 |