| Total Complexity | 6 |
| Total Lines | 56 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | final class MatchFail implements MatchResultInterface |
||
| 14 | { |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var int[] |
||
| 18 | */ |
||
| 19 | private $offsets; |
||
| 20 | |||
| 21 | public function __construct(int ...$offsets) |
||
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @return bool |
||
| 28 | * @psalm-pure |
||
| 29 | */ |
||
| 30 | public function shouldRepeat(): bool |
||
| 31 | { |
||
| 32 | return false; |
||
| 33 | } |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @return bool |
||
| 37 | * @psalm-pure |
||
| 38 | */ |
||
| 39 | public function hasToken(): bool |
||
| 40 | { |
||
| 41 | return false; |
||
| 42 | } |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @return TokenInterface |
||
| 46 | * @psalm-pure |
||
| 47 | */ |
||
| 48 | public function getToken(): TokenInterface |
||
| 49 | { |
||
| 50 | throw new Exception\TokenNotMatchedException($this->offsets); |
||
| 51 | } |
||
| 52 | |||
| 53 | /** |
||
| 54 | * @return bool |
||
| 55 | * @psalm-pure |
||
| 56 | */ |
||
| 57 | public function hasLexeme(): bool |
||
| 60 | } |
||
| 61 | |||
| 62 | /** |
||
| 63 | * @return LexemeInterface |
||
| 64 | * @psalm-pure |
||
| 65 | */ |
||
| 66 | public function getLexeme(): LexemeInterface |
||
| 69 | } |
||
| 70 | } |
||
| 71 |