菜谱项目

BinaryOp.php 769B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. namespace PhpParser\Node\Expr;
  3. use PhpParser\Node\Expr;
  4. abstract class BinaryOp extends Expr
  5. {
  6. /** @var Expr The left hand side expression */
  7. public $left;
  8. /** @var Expr The right hand side expression */
  9. public $right;
  10. /**
  11. * Constructs a bitwise and node.
  12. *
  13. * @param Expr $left The left hand side expression
  14. * @param Expr $right The right hand side expression
  15. * @param array $attributes Additional attributes
  16. */
  17. public function __construct(Expr $left, Expr $right, array $attributes = array()) {
  18. parent::__construct($attributes);
  19. $this->left = $left;
  20. $this->right = $right;
  21. }
  22. public function getSubNodeNames() {
  23. return array('left', 'right');
  24. }
  25. }