Class TrueNode
Boolean TRUE.
Represents the boolean TRUE constant, spelled true
or TRUE
. This does not represent
other truthy values like 1 or 'hello'
.
-
Pharborist\Node
implements
Pharborist\NodeInterface
-
Pharborist\ParentNode
implements
Pharborist\ParentNodeInterface
-
Pharborist\Constants\ConstantNode
implements
Pharborist\ExpressionNode
-
Pharborist\Types\BooleanNode
implements
Pharborist\Types\ScalarNode
-
Pharborist\Types\TrueNode
Methods summary
public static
Pharborist\Types\TrueNode
|
#
create( boolean $boolean = TRUE )
Create a new TrueNode.
Parameters
- $boolean
- Parameter is ignored.
Returns
Overrides
|
public
boolean
|
#
toValue( )
Gets the boolean value of the node.
Gets the boolean value of the node.
Returns
boolean
|
Methods inherited from Pharborist\ParentNode
__clone(),
__toString(),
acceptVisitor(),
addChild(),
addChildren(),
append(),
childCount(),
children(),
clear(),
find(),
firstChild(),
firstToken(),
getSourcePosition(),
getText(),
getTree(),
has(),
isDescendant(),
isEmpty(),
lastChild(),
lastToken(),
mergeNode(),
prepend(),
walk()
|
Methods inherited from Pharborist\Node
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()
|