PropertyFetch.php 762 B

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