Total Complexity | 11 |
Total Lines | 49 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | final class RangeTransition extends Transition |
||
12 | { |
||
13 | /** @var int */ |
||
14 | public $from; |
||
15 | |||
16 | /** @var int */ |
||
17 | public $to; |
||
18 | |||
19 | public function __construct(ATNState $target, int $from, int $to) |
||
20 | { |
||
21 | parent::__construct($target); |
||
22 | |||
23 | $this->from = $from; |
||
24 | $this->to = $to; |
||
25 | } |
||
26 | |||
27 | public function label() : ?IntervalSet |
||
30 | } |
||
31 | |||
32 | public function matches(int $symbol, int $minVocabSymbol, int $maxVocabSymbol) : bool |
||
33 | { |
||
34 | return $symbol >= $this->from && $symbol <= $this->to; |
||
35 | } |
||
36 | |||
37 | public function getSerializationType() : int |
||
40 | } |
||
41 | |||
42 | public function equals(object $other) : bool |
||
52 | } |
||
53 | |||
54 | public function __toString() : string |
||
60 | ); |
||
61 | } |
||
63 |