No Description

Arg.php 863B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. namespace PhpParser\Node;
  3. use PhpParser\NodeAbstract;
  4. /**
  5. * @property Expr $value Value to pass
  6. * @property bool $byRef Whether to pass by ref
  7. * @property bool $unpack Whether to unpack the argument
  8. */
  9. class Arg extends NodeAbstract
  10. {
  11. /**
  12. * Constructs a function call argument node.
  13. *
  14. * @param Expr $value Value to pass
  15. * @param bool $byRef Whether to pass by ref
  16. * @param bool $unpack Whether to unpack the argument
  17. * @param array $attributes Additional attributes
  18. */
  19. public function __construct(Expr $value, $byRef = false, $unpack = false, array $attributes = array()) {
  20. parent::__construct(
  21. array(
  22. 'value' => $value,
  23. 'byRef' => $byRef,
  24. 'unpack' => $unpack,
  25. ),
  26. $attributes
  27. );
  28. }
  29. }