1<?php declare(strict_types=1); 2 3namespace PhpParser\Lexer\TokenEmulator; 4 5use PhpParser\PhpVersion; 6 7final class MatchTokenEmulator extends KeywordEmulator { 8 public function getPhpVersion(): PhpVersion { 9 return PhpVersion::fromComponents(8, 0); 10 } 11 12 public function getKeywordString(): string { 13 return 'match'; 14 } 15 16 public function getKeywordToken(): int { 17 return \T_MATCH; 18 } 19} 20