Total Complexity | 3 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | class Token |
||
19 | { |
||
20 | public const T_NAME = 256; |
||
21 | public const T_NUM = 257; |
||
22 | public const T_STRING = 258; |
||
23 | public const T_BOOL = 259; |
||
24 | public const T_NULL = 260; |
||
25 | public const T_ENCAPSED_VAR = 261; |
||
26 | public const T_VAR = 262; |
||
27 | public const T_END_STR = 263; |
||
28 | public const T_EOF = -1; |
||
29 | |||
30 | public int|string $type; |
||
31 | public mixed $value; |
||
32 | |||
33 | 589 | public function __construct(int|string $type, mixed $value) |
|
37 | } |
||
38 | |||
39 | 3 | public static function getLiteral(int|string $type): string |
|
52 |