1<?php 2 3declare(strict_types=1); 4 5namespace Antlr\Antlr4\Runtime\Atn\Transitions; 6 7final class WildcardTransition extends Transition 8{ 9 public function matches(int $symbol, int $minVocabSymbol, int $maxVocabSymbol) : bool 10 { 11 return $symbol >= $minVocabSymbol && $symbol <= $maxVocabSymbol; 12 } 13 14 public function getSerializationType() : int 15 { 16 return self::WILDCARD; 17 } 18 19 public function equals(object $other) : bool 20 { 21 if ($this === $other) { 22 return true; 23 } 24 25 return $other instanceof self 26 && $this->target->equals($other->target); 27 } 28 29 public function __toString() : string 30 { 31 return '.'; 32 } 33} 34