| Total Complexity | 5 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | class IdConsumerService extends GenericConsumerService |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * Overridden to return patterns matching the beginning part of an ID ('<' |
||
| 22 | * and '>' chars). |
||
| 23 | * |
||
| 24 | * @return string[] the patterns |
||
| 25 | */ |
||
| 26 | 4 | public function getTokenSeparators() : array |
|
| 27 | { |
||
| 28 | 4 | return \array_merge(parent::getTokenSeparators(), ['<', '>']); |
|
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Returns true for '>'. |
||
| 33 | */ |
||
| 34 | 85 | protected function isEndToken(string $token) : bool |
|
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Returns true for '<'. |
||
| 41 | */ |
||
| 42 | 83 | protected function isStartToken(string $token) : bool |
|
| 45 | } |
||
| 46 | |||
| 47 | /** |
||
| 48 | * Returns null for whitespace, and Token for anything else. |
||
| 49 | */ |
||
| 50 | 85 | protected function getPartForToken(string $token, bool $isLiteral) : ?IHeaderPart |
|
| 56 | } |
||
| 57 | } |
||
| 58 |