Overview

Namespaces

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

Classes

  • ClassConstantLookupNode
  • ClassMemberListNode
  • ClassMemberLookupNode
  • ClassMemberNode
  • ClassMethodCallNode
  • ClassMethodNode
  • ClassNameScalarNode
  • ClassNode
  • ClassStatementNode
  • InterfaceMethodNode
  • InterfaceNode
  • NameExpressionNode
  • NewNode
  • ObjectMethodCallNode
  • ObjectPropertyNode
  • SingleInheritanceNode
  • TraitAdaptationStatementNode
  • TraitAliasNode
  • TraitMethodReferenceNode
  • TraitNode
  • TraitPrecedenceNode
  • TraitUseNode

Interfaces

  • InterfaceStatementNode

Traits

  • MethodTrait
  • VisibilityTrait
  • Overview
  • Namespace
  • Class

Class ObjectPropertyNode

An object property access, e.g. $object->property.

Pharborist\Node implements Pharborist\NodeInterface
Extended by Pharborist\ParentNode implements Pharborist\ParentNodeInterface
Extended by Pharborist\Objects\ObjectPropertyNode implements Pharborist\Variables\VariableExpressionNode
Namespace: Pharborist\Objects
Located at Objects/ObjectPropertyNode.php
Methods summary
public Pharborist\Node
# getObject( )

Returns

Pharborist\Node
public Pharborist\Node
# getProperty( )

Returns

Pharborist\Node
public string|null
# getPropertyName( )

Returns the name of the property if it's an identifier (ie. T_STRING TokenNode).

Returns the name of the property if it's an identifier (ie. T_STRING TokenNode).

Returns

string|null

Name of the property or NULL if not an identifier (eg. dynamic property name).

public Pharborist\Node
# getRootProperty( )

Returns the root property.

Returns the root property.

For example, given an expression like $foo->bar->baz this method will return the identifier (T_STRING TokenNode) 'bar'.

Returns

Pharborist\Node
The node for the root property.
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