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\Objects;
 3: 
 4: use Pharborist\Namespaces\IdentifierNameTrait;
 5: use Pharborist\NodeCollection;
 6: use Pharborist\Namespaces\NameNode;
 7: use Pharborist\StatementNode;
 8: use Pharborist\DocCommentTrait;
 9: use Pharborist\CommaListNode;
10: use Pharborist\StatementBlockNode;
11: 
12: /**
13:  * An interface declaration.
14:  */
15: class InterfaceNode extends StatementNode {
16:   use IdentifierNameTrait;
17:   use DocCommentTrait;
18: 
19:   /**
20:    * @var CommaListNode
21:    */
22:   protected $extends;
23: 
24:   /**
25:    * @var StatementBlockNode
26:    */
27:   protected $statements;
28: 
29:   /**
30:    * @return CommaListNode
31:    */
32:   public function getExtendList() {
33:     return $this->extends;
34:   }
35: 
36:   /**
37:    * @return NodeCollection|NameNode[]
38:    */
39:   public function getExtends() {
40:     return $this->extends->getItems();
41:   }
42: 
43:   /**
44:    * @return StatementBlockNode
45:    */
46:   public function getBody() {
47:     return $this->statements;
48:   }
49: 
50:   /**
51:    * @return NodeCollection|InterfaceStatementNode[]
52:    */
53:   public function getStatements() {
54:     return $this->statements->getStatements();
55:   }
56: }
57: 
Pharborist API documentation generated by ApiGen