‪TYPO3CMS  ‪main
TYPO3\CMS\Core\TypoScript\Tokenizer\Token\IdentifierToken Class Reference
Inheritance diagram for TYPO3\CMS\Core\TypoScript\Tokenizer\Token\IdentifierToken:
TYPO3\CMS\Core\TypoScript\Tokenizer\Token\AbstractToken TYPO3\CMS\Core\TypoScript\Tokenizer\Token\TokenInterface

Public Member Functions

 __toString ()
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Core\TypoScript\Tokenizer\Token\AbstractToken
 __construct (private readonly TokenType $type, protected readonly string $value, int $line=0, int $column=0)
 
 __serialize ()
 
 getType ()
 
 getValue ()
 
 getLine ()
 
 getColumn ()
 

Additional Inherited Members

- ‪Protected Attributes inherited from ‪TYPO3\CMS\Core\TypoScript\Tokenizer\Token\AbstractToken
int $line = 0
 
int $column = 0
 

Detailed Description

A special token if this token is a T_IDENTIFIER token: With a line like "foo = bar", "foo" is created as TokenIdentifier TokenInterface (as opposed to Token) having a TokenType::T_IDENTIFIER token. The only difference to all other tokens is that TokenIdentifier tokens quote any "." (dots) in their value with a backslash when output. This is mostly used in backend when rendering source of TokenLine's.

Note we do not explicitly check if TokenType::T_IDENTIFIER is given in __construct() at the moment for performance reasons and inheritance considerations.

: Internal tokenizer structure.

Definition at line 33 of file IdentifierToken.php.

Member Function Documentation

◆ __toString()

TYPO3\CMS\Core\TypoScript\Tokenizer\Token\IdentifierToken::__toString ( )

Reimplemented from TYPO3\CMS\Core\TypoScript\Tokenizer\Token\AbstractToken.

Definition at line 35 of file IdentifierToken.php.