Variable.php 530 B

12345678910111213141516171819202122
  1. <?php
  2. /**
  3. * @property string|PHPParser_Node_Expr $name Name
  4. */
  5. class PHPParser_Node_Expr_Variable extends PHPParser_Node_Expr
  6. {
  7. /**
  8. * Constructs a variable node.
  9. *
  10. * @param string|PHPParser_Node_Expr $name Name
  11. * @param array $attributes Additional attributes
  12. */
  13. public function __construct($name, array $attributes = array()) {
  14. parent::__construct(
  15. array(
  16. 'name' => $name
  17. ),
  18. $attributes
  19. );
  20. }
  21. }