Documentation

ConstExprParser
in package

Table of Contents

$parseDoctrineStrings  : bool
$quoteAwareConstExprString  : bool
$unescapeStrings  : bool
$useIndexAttributes  : bool
$useLinesAttributes  : bool
__construct()  : mixed
parse()  : ConstExprNode
parseDoctrineString()  : DoctrineConstExprStringNode
This method is supposed to be called with TokenIterator after reading TOKEN_DOUBLE_QUOTED_STRING and shifting to the next token.
enrichWithAttributes()  : T
parseArray()  : ConstExprArrayNode
parseArrayItem()  : ConstExprArrayItemNode

Properties

Methods

__construct()

public __construct([bool $unescapeStrings = false ][, bool $quoteAwareConstExprString = false ][, array{lines?: bool, indexes?: bool} $usedAttributes = [] ]) : mixed
Parameters
$unescapeStrings : bool = false
$quoteAwareConstExprString : bool = false
$usedAttributes : array{lines?: bool, indexes?: bool} = []
Return values
mixed

enrichWithAttributes()

private enrichWithAttributes(TokenIterator $tokens, T $node, int $startLine, int $startIndex) : T
Parameters
$tokens : TokenIterator
$node : T
$startLine : int
$startIndex : int
Tags
template

T of Ast\ConstExpr\ConstExprNode

Return values
T

Search results