Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. MatchTokenEmulator.php

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

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\TokenEmulator
View 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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal