| Total Complexity | 5 |
| Total Lines | 71 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 15 | final class Token |
||
| 16 | { |
||
| 17 | public const CHAR = 0x0; |
||
| 18 | public const STAR = 0x1; |
||
| 19 | public const RANGLE = 0x2; |
||
| 20 | public const DOT = 0x3; |
||
| 21 | public const OCTO = 0x4; |
||
| 22 | public const RSQUARE = 0x5; |
||
| 23 | public const LSQUARE = 0x6; |
||
| 24 | public const COLON = 0x7; |
||
| 25 | public const RPAREN = 0x8; |
||
| 26 | public const LPAREN = 0x9; |
||
| 27 | public const PLUS = 0xA; |
||
| 28 | public const TILDE = 0xB; |
||
| 29 | public const EQ = 0xC; |
||
| 30 | public const PIPE = 0xD; |
||
| 31 | public const COMMA = 0xE; |
||
| 32 | public const WHITE = 0xF; |
||
| 33 | public const QUOTE = 0x10; |
||
| 34 | public const SQUOTE = 0x11; |
||
| 35 | public const BSLASH = 0x12; |
||
| 36 | public const CARAT = 0x13; |
||
| 37 | public const DOLLAR = 0x14; |
||
| 38 | public const AT = 0x15; // This is not in the spec. Apparently, old broken CSS uses it. |
||
| 39 | |||
| 40 | // In legal range for string. |
||
| 41 | public const STRING_LEGAL = 0x63; |
||
| 42 | |||
| 43 | /** |
||
| 44 | * Get a name for a given constant. Used for error handling. |
||
| 45 | */ |
||
| 46 | public static function name($const_int) |
||
| 88 |