Overview

Namespaces

  • Pharborist
    • Constants
    • ControlStructures
    • Exceptions
    • Functions
    • Generators
    • Namespaces
    • Objects
    • Operators
    • Types
    • Variables

Classes

  • ArrayNode
  • ArrayPairNode
  • BooleanNode
  • FalseNode
  • FloatNode
  • HeredocNode
  • IntegerNode
  • InterpolatedStringNode
  • NullNode
  • StringNode
  • StringVariableNode
  • TrueNode

Interfaces

  • ArrayElementNode
  • ScalarNode
  • Overview
  • Namespace
  • Class

Class BooleanNode

Base class for TRUE and FALSE.

Pharborist\Node implements Pharborist\NodeInterface
Extended by Pharborist\ParentNode implements Pharborist\ParentNodeInterface
Extended by Pharborist\Constants\ConstantNode implements Pharborist\ExpressionNode
Extended by Pharborist\Types\BooleanNode implements Pharborist\Types\ScalarNode

Direct known subclasses

Pharborist\Types\FalseNode, Pharborist\Types\TrueNode
Abstract
Namespace: Pharborist\Types
See: Pharborist\Types\TrueNode
See: Pharborist\Types\FalseNode
Located at Types/BooleanNode.php
Methods summary
public static Pharborist\Types\BooleanNode
# create( mixed $boolean )

Creates a BooleanNode.

Creates a BooleanNode.

Parameters

$boolean
The boolean to create. Pass a truthy value for TrueNode, falsy for FalseNode.

Returns

Pharborist\Types\BooleanNode

Overrides

Pharborist\Constants\ConstantNode::create()
abstract public boolean
# toValue( )

Returns the boolean value of constant.

Returns the boolean value of constant.

Returns

boolean

Implementation of

Pharborist\Types\ScalarNode::toValue()
Methods inherited from Pharborist\Constants\ConstantNode
getConstantName(), toLowerCase(), toUpperCase()
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()
Pharborist API documentation generated by ApiGen