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 ObjectMethodCallNode

An object method call, e.g. $object->method()

Pharborist\Node implements Pharborist\NodeInterface
Extended by Pharborist\ParentNode implements Pharborist\ParentNodeInterface
Extended by Pharborist\Functions\CallNode uses Pharborist\Functions\ArgumentTrait, Pharborist\ParenTrait
Extended by Pharborist\Objects\ObjectMethodCallNode implements Pharborist\Variables\VariableExpressionNode
Namespace: Pharborist\Objects
Located at Objects/ObjectMethodCallNode.php
Methods summary
public Pharborist\Node
# getObject( )

Returns

Pharborist\Node
public Pharborist\TokenNode
# getOperator( )

The object operator '->' token (T_OBJECT_OPERATOR).

The object operator '->' token (T_OBJECT_OPERATOR).

Returns

Pharborist\TokenNode
public Pharborist\Node
# getMethodName( )

Returns

Pharborist\Node
public
# setMethodName( string|Pharborist\Node $method_name )

Parameters

$method_name

Returns


$this
public static static
# create( Pharborist\Node $object, string $method_name )

Creates a method call on an object with an empty argument list.

Creates a method call on an object with an empty argument list.

Parameters

$object
The expression that is an object.
$method_name
The name of the called method.

Returns

static
public Pharborist\Functions\CallNode|null
# getPreviousCall( )

If this is a chained method call (e.g., foo()->bar()->baz()), returns the previous call in the chain.

If this is a chained method call (e.g., foo()->bar()->baz()), returns the previous call in the chain.

Returns

Pharborist\Functions\CallNode|null
The previous call in the chain or NULL if there is none.
Methods inherited from Pharborist\Functions\CallNode
appendMethodCall()
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()
Methods used from Pharborist\Functions\ArgumentTrait
appendArgument(), clearArguments(), getArgumentList(), getArguments(), insertArgument(), prependArgument()
Methods used from Pharborist\ParenTrait
getCloseParen(), getOpenParen()
Pharborist API documentation generated by ApiGen