Total Complexity | 4 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | class UnexpectedTokenError implements UnexpectedTokenErrorInterface |
||
11 | { |
||
12 | private $unexpectedToken; |
||
13 | |||
14 | private $productionHeader; |
||
15 | |||
16 | private $expectedTokenTypeList; |
||
17 | |||
18 | public function __construct(Token $unexpectedToken, Symbol $productionHeader, int ...$expectedTokenTypeList) |
||
19 | { |
||
20 | $this->unexpectedToken = $unexpectedToken; |
||
21 | $this->productionHeader = $productionHeader; |
||
22 | $this->expectedTokenTypeList = $expectedTokenTypeList; |
||
23 | } |
||
24 | |||
25 | public function getUnexpectedToken(): Token |
||
26 | { |
||
27 | return $this->unexpectedToken; |
||
28 | } |
||
29 | |||
30 | public function getExpectedTokenTypeList(): array |
||
31 | { |
||
32 | return $this->expectedTokenTypeList; |
||
33 | } |
||
34 | |||
35 | public function getProductionHeader(): Symbol |
||
38 | } |
||
39 | } |
||
40 |