TokenProcessor
class TokenProcessor
Properties
array | $context | ||
protected EventDispatcherInterface | $dispatcher | ||
protected array | $messages | ||
array | $rowContexts | DO NOT access field this directly. Use TokenRow. This is marked as public only to benefit TokenRow. | |
array | $rowValues | DO NOT access field this directly. Use TokenRow. This is marked as public only to benefit TokenRow. | |
protected array | $tokens | A list of available tokens | |
protected | $next |
Methods
__construct(EventDispatcherInterface $dispatcher, array $context)
No description
addMessage(string $name, string $value, string $format)
Register a string for which we'll need to merge in tokens.
addToken(array $params)
No description
array
getMessage(string $name)
No description
array
getMessageTokens()
Get a list of all tokens used in registered messages.
getRow($key)
No description
Traversable
getRows()
No description
array
getTokens()
Get the list of available tokens.
evaluate()
Compute and store token values.
Details
at line 77
__construct(EventDispatcherInterface $dispatcher, array $context)
at line 93
TokenProcessor
addMessage(string $name, string $value, string $format)
Register a string for which we'll need to merge in tokens.
at line 107
TokenRow
addRow()
Add a row of data.
at line 126
TokenProcessor
addToken(array $params)
at line 139
array
getMessage(string $name)
at line 148
array
getMessageTokens()
Get a list of all tokens used in registered messages.
at line 160
getRow($key)
at line 167
Traversable
getRows()
at line 177
array
getTokens()
Get the list of available tokens.
at line 189
evaluate()
Compute and store token values.
at line 205
string
render(string $name, TokenRow|int $row)
Render a message.