Overview

Namespaces

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

Classes

  • BreakStatementNode
  • CaseNode
  • ContinueStatementNode
  • DeclareDirectiveNode
  • DeclareNode
  • DefaultNode
  • DoWhileNode
  • ElseIfNode
  • ExitNode
  • ForeachNode
  • ForNode
  • GotoLabelNode
  • GotoStatementNode
  • IfNode
  • ImportNode
  • IncludeNode
  • IncludeOnceNode
  • RequireNode
  • RequireOnceNode
  • ReturnStatementNode
  • SwitchNode
  • WhileNode

Traits

  • AltSyntaxTrait
  • Overview
  • Namespace
  • Class

Trait AltSyntaxTrait

Trait for control structures that support alternative syntax.

Direct Known Users

Pharborist\ControlStructures\ForeachNode, Pharborist\ControlStructures\ForNode, Pharborist\ControlStructures\IfNode, Pharborist\ControlStructures\SwitchNode, Pharborist\ControlStructures\WhileNode
Namespace: Pharborist\ControlStructures
Located at ControlStructures/AltSyntaxTrait.php
Methods summary
public Pharborist\TokenNode
# getOpenColon( )

The colon (':') delimiter for body of statements.

The colon (':') delimiter for body of statements.

Returns

Pharborist\TokenNode
public Pharborist\TokenNode
# getEndKeyword( )

The end keyword delimiter for end of control structure.

The end keyword delimiter for end of control structure.

Returns

Pharborist\TokenNode
public boolean
# isAlterativeSyntax( )

Return if control structure is using the altnerative syntax.

Return if control structure is using the altnerative syntax.

Returns

boolean
Pharborist API documentation generated by ApiGen