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\ExpressionNode;
 5: use Pharborist\Functions\ArgumentTrait;
 6: use Pharborist\Namespaces\NameNode;
 7: use Pharborist\ParentNode;
 8: use Pharborist\ParenTrait;
 9: 
10: /**
11:  * A new expression, e.g. `new Foo()`
12:  *
13:  * You can access and modify the constructor arguments as with any other
14:  * function or method call.
15:  */
16: class NewNode extends ParentNode implements ExpressionNode {
17:   use ArgumentTrait;
18:   use ParenTrait;
19: 
20:   /**
21:    * @var NameNode
22:    */
23:   protected $className;
24: 
25:   /**
26:    * Returns the name of the instantiated class.
27:    *
28:    * @return NameNode
29:    */
30:   public function getClassName() {
31:     return $this->className;
32:   }
33: }
34: 
Pharborist API documentation generated by ApiGen