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

Public Member Functions

 __construct (private readonly TokenType $type, protected readonly string $value, int $line=0, int $column=0)
 
 __toString ()
 
 __serialize ()
 
 getType ()
 
 getValue ()
 
 getLine ()
 
 getColumn ()
 

Protected Attributes

int $line = 0
 
int $column = 0
 

Detailed Description

Main implementation of a TokenInterface.

: Internal tokenizer structure.

Definition at line 25 of file AbstractToken.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Core\TypoScript\Tokenizer\Token\AbstractToken::__construct ( private readonly TokenType  $type,
protected readonly string  $value,
int  $line = 0,
int  $column = 0 
)

Member Function Documentation

◆ __serialize()

TYPO3\CMS\Core\TypoScript\Tokenizer\Token\AbstractToken::__serialize ( )

Do not store line and column when structure is serialized to cache. Not storing $line and $column reduces the cache size by about 1/3 since we're typically storing a lot of tokens.

Definition at line 52 of file AbstractToken.php.

◆ __toString()

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

◆ getColumn()

◆ getLine()

◆ getType()

◆ getValue()

Member Data Documentation

◆ $column

int TYPO3\CMS\Core\TypoScript\Tokenizer\Token\AbstractToken::$column = 0
protected

◆ $line

int TYPO3\CMS\Core\TypoScript\Tokenizer\Token\AbstractToken::$line = 0
protected