Overview

Namespaces

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

Classes

  • CatchNode
  • ThrowStatementNode
  • TryCatchNode
  • Overview
  • Namespace
  • Class

Class CatchNode

A catch in a try control structure.

Pharborist\Node implements Pharborist\NodeInterface
Extended by Pharborist\ParentNode implements Pharborist\ParentNodeInterface
Extended by Pharborist\Exceptions\CatchNode uses Pharborist\ParenTrait
Namespace: Pharborist\Exceptions
Located at Exceptions/CatchNode.php
Methods summary
public Pharborist\Namespaces\NameNode
# getExceptionType( )

Returns

Pharborist\Namespaces\NameNode
public Pharborist\Variables\VariableNode
# getVariable( )

Returns the variable for the caught exception.

Returns the variable for the caught exception.

Returns

Pharborist\Variables\VariableNode
public Pharborist\StatementBlockNode
# getBody( )

Returns

Pharborist\StatementBlockNode
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\ParenTrait
getCloseParen(), getOpenParen()
Pharborist API documentation generated by ApiGen