class MatchTokenEmulator
Hierarchy
- class \PhpParser\Lexer\TokenEmulator\TokenEmulator
- class \PhpParser\Lexer\TokenEmulator\KeywordEmulator extends \PhpParser\Lexer\TokenEmulator\TokenEmulator
- class \PhpParser\Lexer\TokenEmulator\MatchTokenEmulator extends \PhpParser\Lexer\TokenEmulator\KeywordEmulator
- class \PhpParser\Lexer\TokenEmulator\KeywordEmulator extends \PhpParser\Lexer\TokenEmulator\TokenEmulator
Expanded class hierarchy of MatchTokenEmulator
1 file declares its use of MatchTokenEmulator
- Emulative.php in vendor/
nikic/ php-parser/ lib/ PhpParser/ Lexer/ Emulative.php
File
-
vendor/
nikic/ php-parser/ lib/ PhpParser/ Lexer/ TokenEmulator/ MatchTokenEmulator.php, line 7
Namespace
PhpParser\Lexer\TokenEmulatorView source
final class MatchTokenEmulator extends KeywordEmulator {
public function getPhpVersion() : PhpVersion {
return PhpVersion::fromComponents(8, 0);
}
public function getKeywordString() : string {
return 'match';
}
public function getKeywordToken() : int {
return \T_MATCH;
}
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overriden Title | Overrides |
---|---|---|---|---|---|
KeywordEmulator::emulate | public | function | Overrides TokenEmulator::emulate | ||
KeywordEmulator::getPreviousNonSpaceToken | private | function | |||
KeywordEmulator::isEmulationNeeded | public | function | Overrides TokenEmulator::isEmulationNeeded | ||
KeywordEmulator::isKeywordContext | protected | function | 2 | ||
KeywordEmulator::reverseEmulate | public | function | Overrides TokenEmulator::reverseEmulate | 1 | |
MatchTokenEmulator::getKeywordString | public | function | Overrides KeywordEmulator::getKeywordString | ||
MatchTokenEmulator::getKeywordToken | public | function | Overrides KeywordEmulator::getKeywordToken | ||
MatchTokenEmulator::getPhpVersion | public | function | Overrides TokenEmulator::getPhpVersion | ||
TokenEmulator::preprocessCode | public | function | 2 |