Class StringNode
A string, like e.g. 'hello world'
or "We are the knights who say, 'Ni!'"
. This
does not include strings interspersed with variables or other expressions --
those are handled by InterpolatedStringNode.
-
Pharborist\Node
implements
Pharborist\NodeInterface
-
Pharborist\TokenNode
-
Pharborist\Types\StringNode
implements
Pharborist\ExpressionNode,
Pharborist\Types\ScalarNode
Methods summary
public static
Pharborist\Types\StringNode
|
#
create( string $text )
Creates a new constant string.
Creates a new constant string.
Parameters
- $text
- The text of the string.
Returns
|
public
string
|
#
toValue( )
Returns the original value of the string (unenclosed by quotes).
Returns the original value of the string (unenclosed by quotes).
Returns
string
Implementation of
|
Methods inherited from Pharborist\Node
__clone(),
after(),
appendTo(),
before(),
closest(),
fromValue(),
furthest(),
getLogicalBlock(),
getRoot(),
getStatement(),
hasRoot(),
index(),
insertAfter(),
insertBefore(),
is(),
isAllOf(),
isAnyOf(),
next(),
nextAll(),
nextToken(),
nextUntil(),
parent(),
parents(),
parentsUntil(),
prependTo(),
previous(),
previousAll(),
previousToken(),
previousUntil(),
remove(),
replaceAll(),
replaceWith(),
siblings(),
sortKey(),
swapWith()
|