No Description

AssignRef.php 819B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php declare(strict_types=1);
  2. namespace PhpParser\Node\Expr;
  3. use PhpParser\Node\Expr;
  4. class AssignRef extends Expr
  5. {
  6. /** @var Expr Variable reference is assigned to */
  7. public $var;
  8. /** @var Expr Variable which is referenced */
  9. public $expr;
  10. /**
  11. * Constructs an assignment node.
  12. *
  13. * @param Expr $var Variable
  14. * @param Expr $expr Expression
  15. * @param array $attributes Additional attributes
  16. */
  17. public function __construct(Expr $var, Expr $expr, array $attributes = []) {
  18. $this->attributes = $attributes;
  19. $this->var = $var;
  20. $this->expr = $expr;
  21. }
  22. public function getSubNodeNames() : array {
  23. return ['var', 'expr'];
  24. }
  25. public function getType() : string {
  26. return 'Expr_AssignRef';
  27. }
  28. }