| Total Complexity | 3 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Coverage | 66.67% |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | class IdConsumer extends GenericConsumer |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * Overridden to return patterns matching the beginning part of an ID ('<' |
||
| 19 | * and '>' chars). |
||
| 20 | * |
||
| 21 | * @return string[] the patterns |
||
| 22 | */ |
||
| 23 | 3 | public function getTokenSeparators() |
|
| 24 | { |
||
| 25 | 3 | return ['\s+', '<', '>']; |
|
| 26 | } |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Returns true for '>'. |
||
| 30 | */ |
||
| 31 | 3 | protected function isEndToken($token) |
|
| 32 | { |
||
| 33 | 3 | return ($token === '>'); |
|
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Returns true for '<'. |
||
| 38 | * |
||
| 39 | * @param string $token |
||
| 40 | * @return boolean false |
||
| 41 | */ |
||
| 42 | protected function isStartToken($token) |
||
| 45 | } |
||
| 46 | } |
||
| 47 |