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