2014-02-06 14:44:16 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace PhpParser\Node\Expr;
|
|
|
|
|
|
|
|
use PhpParser\Node\Expr;
|
|
|
|
|
2015-01-17 23:38:59 +01:00
|
|
|
abstract class BinaryOp extends Expr
|
2014-02-06 14:44:16 +01:00
|
|
|
{
|
2015-02-28 18:44:28 +01:00
|
|
|
/** @var Expr The left hand side expression */
|
|
|
|
public $left;
|
|
|
|
/** @var Expr The right hand side expression */
|
|
|
|
public $right;
|
|
|
|
|
2014-02-06 14:44:16 +01:00
|
|
|
/**
|
|
|
|
* Constructs a bitwise and node.
|
|
|
|
*
|
|
|
|
* @param Expr $left The left hand side expression
|
|
|
|
* @param Expr $right The right hand side expression
|
|
|
|
* @param array $attributes Additional attributes
|
|
|
|
*/
|
|
|
|
public function __construct(Expr $left, Expr $right, array $attributes = array()) {
|
2015-05-02 22:17:34 +02:00
|
|
|
parent::__construct($attributes);
|
2015-02-28 18:44:28 +01:00
|
|
|
$this->left = $left;
|
|
|
|
$this->right = $right;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getSubNodeNames() {
|
|
|
|
return array('left', 'right');
|
2014-02-06 14:44:16 +01:00
|
|
|
}
|
2015-01-17 23:38:59 +01:00
|
|
|
}
|