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 ClassMethodNode

A class method.

Pharborist\Node implements Pharborist\NodeInterface
Extended by Pharborist\ParentNode implements Pharborist\ParentNodeInterface
Extended by Pharborist\StatementNode
Extended by Pharborist\Objects\ClassStatementNode
Extended by Pharborist\Objects\ClassMethodNode uses Pharborist\Objects\MethodTrait
Namespace: Pharborist\Objects
Located at Objects/ClassMethodNode.php
Methods summary
public static Pharborist\Objects\ClassMethodNode
# create( string $method_name )

Parameters

$method_name

Returns

Pharborist\Objects\ClassMethodNode
public static Pharborist\Objects\ClassMethodNode
# fromFunction( Pharborist\Functions\FunctionDeclarationNode $function_node )

Create method from function declaration.

Create method from function declaration.

Parameters

$function_node

Returns

Pharborist\Objects\ClassMethodNode
public Pharborist\TokenNode
# getAbstract( )

Returns the abstract keyword from the method declaration.

Returns the abstract keyword from the method declaration.

Returns

Pharborist\TokenNode
public
# setAbstract( boolean $is_abstract )

Parameters

$is_abstract

Returns


$this
public Pharborist\TokenNode
# getFinal( )

Returns the final keyword from the method declaration.

Returns the final keyword from the method declaration.

Returns

Pharborist\TokenNode
public
# setFinal( boolean $is_final )

Parameters

$is_final

Returns


$this
public Pharborist\StatementBlockNode
# getBody( )

Returns

Pharborist\StatementBlockNode
public string
# getFullyQualifiedName( )

Gets the fully qualified name of the method, e.g. \My\Namespaced\Class::foo.

Gets the fully qualified name of the method, e.g. \My\Namespaced\Class::foo.

Returns

string
Methods inherited from Pharborist\StatementNode
addCommentAbove(), getLineCount(), toComment()
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\Objects\MethodTrait
getName(), getStatic(), setName(), setStatic()
Methods used from Pharborist\Objects\VisibilityTrait
getVisibility(), setVisibility()
Methods used from Pharborist\Functions\FunctionTrait
getReference(), setReference()
Methods used from Pharborist\Functions\ParameterTrait
appendParameter(), clearParameters(), getOptionalParameters(), getParameter(), getParameterAtIndex(), getParameterByName(), getParameterList(), getParameterNames(), getParameters(), getRequiredParameters(), hasOptionalParameter(), hasParameter(), hasRequiredParameter(), hasRequiredParameters(), insertParameter(), isVariadic(), prependParameter()
Methods used from Pharborist\DocCommentTrait
getDocComment(), getIndent(), setDocComment()
Methods used from Pharborist\ParenTrait
getCloseParen(), getOpenParen()
Pharborist API documentation generated by ApiGen