Arg.php 740 B

12345678910111213141516171819202122232425
  1. <?php
  2. /**
  3. * @property PHPParser_Node_Expr $value Value to pass
  4. * @property bool $byRef Whether to pass by ref
  5. */
  6. class PHPParser_Node_Arg extends PHPParser_NodeAbstract
  7. {
  8. /**
  9. * Constructs a function call argument node.
  10. *
  11. * @param PHPParser_Node_Expr $value Value to pass
  12. * @param bool $byRef Whether to pass by ref
  13. * @param array $attributes Additional attributes
  14. */
  15. public function __construct(PHPParser_Node_Expr $value, $byRef = false, array $attributes = array()) {
  16. parent::__construct(
  17. array(
  18. 'value' => $value,
  19. 'byRef' => $byRef
  20. ),
  21. $attributes
  22. );
  23. }
  24. }