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

Breadcrumb

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

class PropertyTokenEmulator

Hierarchy

  • class \PhpParser\Lexer\TokenEmulator\TokenEmulator
    • class \PhpParser\Lexer\TokenEmulator\KeywordEmulator extends \PhpParser\Lexer\TokenEmulator\TokenEmulator
      • class \PhpParser\Lexer\TokenEmulator\PropertyTokenEmulator extends \PhpParser\Lexer\TokenEmulator\KeywordEmulator

Expanded class hierarchy of PropertyTokenEmulator

1 file declares its use of PropertyTokenEmulator
Emulative.php in vendor/nikic/php-parser/lib/PhpParser/Lexer/Emulative.php

File

vendor/nikic/php-parser/lib/PhpParser/Lexer/TokenEmulator/PropertyTokenEmulator.php, line 7

Namespace

PhpParser\Lexer\TokenEmulator
View source
final class PropertyTokenEmulator extends KeywordEmulator {
    public function getPhpVersion() : PhpVersion {
        return PhpVersion::fromComponents(8, 4);
    }
    public function getKeywordString() : string {
        return '__property__';
    }
    public function getKeywordToken() : int {
        return \T_PROPERTY_C;
    }

}

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
PropertyTokenEmulator::getKeywordString public function Overrides KeywordEmulator::getKeywordString
PropertyTokenEmulator::getKeywordToken public function Overrides KeywordEmulator::getKeywordToken
PropertyTokenEmulator::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