1: | <?php declare(strict_types=1); |
2: | |
3: | namespace PhpParser\Node\Expr; |
4: | |
5: | use PhpParser\Node\Expr; |
6: | |
7: | abstract class BinaryOp extends Expr { |
8: | |
9: | public Expr $left; |
10: | |
11: | public Expr $right; |
12: | |
13: | |
14: | |
15: | |
16: | |
17: | |
18: | |
19: | |
20: | public function __construct(Expr $left, Expr $right, array $attributes = []) { |
21: | $this->attributes = $attributes; |
22: | $this->left = $left; |
23: | $this->right = $right; |
24: | } |
25: | |
26: | public function getSubNodeNames(): array { |
27: | return ['left', 'right']; |
28: | } |
29: | |
30: | |
31: | |
32: | |
33: | |
34: | |
35: | |
36: | abstract public function getOperatorSigil(): string; |
37: | } |
38: | |