| Total Complexity | 6 |
| Total Lines | 56 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | final class MatchSuccess implements MatchResultInterface |
||
| 13 | { |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @var TokenInterface |
||
| 17 | */ |
||
| 18 | private $token; |
||
| 19 | |||
| 20 | public function __construct(TokenInterface $token) |
||
| 21 | { |
||
| 22 | $this->token = $token; |
||
| 23 | } |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @return bool |
||
| 27 | * @psalm-pure |
||
| 28 | */ |
||
| 29 | public function shouldRepeat(): bool |
||
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @return bool |
||
| 36 | * @psalm-pure |
||
| 37 | */ |
||
| 38 | public function hasToken(): bool |
||
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @return TokenInterface |
||
| 45 | * @psalm-pure |
||
| 46 | */ |
||
| 47 | public function getToken(): TokenInterface |
||
| 50 | } |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @return bool |
||
| 54 | * @psalm-pure |
||
| 55 | */ |
||
| 56 | public function hasLexeme(): bool |
||
| 59 | } |
||
| 60 | |||
| 61 | /** |
||
| 62 | * @return LexemeInterface |
||
| 63 | * @psalm-pure |
||
| 64 | */ |
||
| 65 | public function getLexeme(): LexemeInterface |
||
| 70 |