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 ClassMethodCallNode

A call to a static class method, e.g. MyClass::classMethod()

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\ClassMethodCallNode implements Pharborist\Variables\VariableExpressionNode
Namespace: Pharborist\Objects
Located at Objects/ClassMethodCallNode.php
Methods summary
public Pharborist\Namespaces\NameNode|Pharborist\Node
# getClassName( )

Returns

Pharborist\Namespaces\NameNode|Pharborist\Node
public
# setClassName( string|Pharborist\Node $class_name )

Parameters

$class_name

Returns


$this
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|string $class_name, string $method_name )

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

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

Parameters

$class_name
The class node which is typically NameNode of class.
$method_name
The name of the called method.

Returns

static
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