IdentifierAssignmentLine extends AbstractLine
Simple "=" assignments and multiline "(" assignments: "foo.bar = barValue".
Each line has two additional token streams: $identifierTokenStream for the left side ("foo" and "bar" tokens) and $valueTokenStream for the right side ("barValue" token). Right side is often a single token only, but can be many tokens when constants and multiline assignments are involved.
Neither the left, nor the right side streams can be empty: Even with "foo.bar =" a T_VALUE token with empty value is created for the right side.
Tags
Table of Contents
Properties
Methods
- getIdentifierTokenStream() : IdentifierTokenStream
- getTokenStream() : TokenStreamInterface
- getValueTokenStream() : TokenStreamInterface
- setIdentifierTokenStream() : static
- setTokenStream() : static
- Set and get the token stream that represents the full line. This is mostly used in backend to for instance create a TypoScript string back from tokenized lines.
- setValueTokenStream() : static
Properties
$tokenStream
protected
TokenStreamInterface
$tokenStream
Methods
getIdentifierTokenStream()
public
getIdentifierTokenStream() : IdentifierTokenStream
Return values
IdentifierTokenStreamgetTokenStream()
public
getTokenStream() : TokenStreamInterface
Return values
TokenStreamInterfacegetValueTokenStream()
public
getValueTokenStream() : TokenStreamInterface
Return values
TokenStreamInterfacesetIdentifierTokenStream()
public
setIdentifierTokenStream(IdentifierTokenStream $tokenStream) : static
Parameters
- $tokenStream : IdentifierTokenStream
Return values
staticsetTokenStream()
Set and get the token stream that represents the full line. This is mostly used in backend to for instance create a TypoScript string back from tokenized lines.
public
setTokenStream(TokenStreamInterface $tokenStream) : static
Note: Only the LosslessTokenizer fills this 'full line' stream, LossyTokenizer does not for performance reasons.
Parameters
- $tokenStream : TokenStreamInterface
Return values
staticsetValueTokenStream()
public
setValueTokenStream(TokenStreamInterface $tokenStream) : static
Parameters
- $tokenStream : TokenStreamInterface