Overview

Namespaces

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

Classes

  • ClassMagicConstantNode
  • ConstantDeclarationNode
  • ConstantDeclarationStatementNode
  • ConstantNode
  • DirMagicConstantNode
  • FileMagicConstantNode
  • FunctionMagicConstantNode
  • LineMagicConstantNode
  • MethodMagicConstantNode
  • NamespaceMagicConstantNode
  • TraitMagicConstantNode
  • Overview
  • Namespace
  • Class

Class ConstantNode

A constant lookup, like MyNamespace\MY_CONST or IS_FUBAR.

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

Direct known subclasses

Pharborist\Types\BooleanNode, Pharborist\Types\NullNode

Indirect known subclasses

Pharborist\Types\FalseNode, Pharborist\Types\TrueNode
Namespace: Pharborist\Constants
Located at Constants/ConstantNode.php
Methods summary
public static static
# create( string|Pharborist\Namespaces\NameNode $name )

Parameters

$name

Returns

static
public Pharborist\Namespaces\NameNode
# getConstantName( )

Returns

Pharborist\Namespaces\NameNode
public
# toUpperCase( )

Convert the constant into uppercase.

Convert the constant into uppercase.

Returns


$this
public
# toLowerCase( )

Convert the constant into lowercase.

Convert the constant into lowercase.

Returns


$this
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