Overview

Namespaces

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

Classes

  • Pharborist\Variables\CompoundVariableNode
  • Pharborist\Variables\GlobalStatementNode
  • Pharborist\Variables\ReferenceVariableNode
  • Pharborist\Variables\StaticVariableNode
  • Pharborist\Variables\StaticVariableStatementNode
  • Pharborist\Variables\VariableNode
  • Pharborist\Variables\VariableVariableNode

Interfaces

  • Pharborist\Variables\VariableExpressionNode
  • Overview
  • Namespace
  • Class
 1: <?php
 2: namespace Pharborist\ControlStructures;
 3: 
 4: use Pharborist\ParentNode;
 5: use Pharborist\Node;
 6: use Pharborist\ExpressionNode;
 7: use Pharborist\ParenTrait;
 8: use Pharborist\TokenNode;
 9: 
10: /**
11:  * elseif control structure.
12:  */
13: class ElseIfNode extends ParentNode {
14:   use ParenTrait;
15: 
16:   /**
17:    * @var ExpressionNode
18:    */
19:   protected $condition;
20: 
21:   /**
22:    * @var TokenNode
23:    */
24:   protected $openColon;
25: 
26:   /**
27:    * @var Node
28:    */
29:   protected $then;
30: 
31:   /**
32:    * @return ExpressionNode
33:    */
34:   public function getCondition() {
35:     return $this->condition;
36:   }
37: 
38:   /**
39:    * The colon (':') delimiter for body of statements.
40:    *
41:    * @return TokenNode
42:    */
43:   public function getOpenColon() {
44:     return $this->openColon;
45:   }
46: 
47:   /**
48:    * @return Node
49:    */
50:   public function getThen() {
51:     return $this->then;
52:   }
53: }
54: 
Pharborist API documentation generated by ApiGen