Total Complexity | 2 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
23 | abstract class SplStringEnum extends SplEnumBacked |
||
24 | { |
||
25 | /** |
||
26 | * Value of enum instance. |
||
27 | * |
||
28 | * @var string |
||
29 | */ |
||
30 | protected string $value; |
||
31 | |||
32 | /** |
||
33 | * {@inheritdoc} |
||
34 | */ |
||
35 | final protected function __construct() |
||
40 | } |
||
41 | |||
42 | /** |
||
43 | * Method called when a script tries to call an object as a function. |
||
44 | * |
||
45 | * @return string |
||
46 | * |
||
47 | * @psalm-suppress MixedInferredReturnType |
||
48 | */ |
||
49 | final public function &__invoke(): string |
||
54 |