Total Complexity | 4 |
Total Lines | 22 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | class TokenFactory implements TokenFactoryInterface |
||
11 | { |
||
12 | private $grammar; |
||
13 | |||
14 | public function __construct(GrammarInterface $grammar) |
||
17 | } |
||
18 | |||
19 | public function createToken(int $tokenId): Token |
||
22 | } |
||
23 | |||
24 | public function createEoiToken(): Token |
||
27 | } |
||
28 | |||
29 | protected function isEoi(int $tokenId): bool |
||
34 |