1: | <?php declare(strict_types = 1); |
2: | |
3: | namespace PHPStan\Node; |
4: | |
5: | use PhpParser\Node\Expr; |
6: | use PhpParser\Node\Expr\BinaryOp\BooleanOr; |
7: | use PhpParser\Node\Expr\BinaryOp\LogicalOr; |
8: | use PHPStan\Analyser\Scope; |
9: | |
10: | |
11: | |
12: | |
13: | |
14: | class BooleanOrNode extends Expr implements VirtualNode |
15: | { |
16: | |
17: | public function __construct(private BooleanOr|LogicalOr $originalNode, private Scope $rightScope) |
18: | { |
19: | parent::__construct($originalNode->getAttributes()); |
20: | } |
21: | |
22: | |
23: | |
24: | |
25: | public function getOriginalNode() |
26: | { |
27: | return $this->originalNode; |
28: | } |
29: | |
30: | public function getRightScope(): Scope |
31: | { |
32: | return $this->rightScope; |
33: | } |
34: | |
35: | public function getType(): string |
36: | { |
37: | return 'PHPStan_Node_BooleanOrNode'; |
38: | } |
39: | |
40: | |
41: | |
42: | |
43: | public function getSubNodeNames(): array |
44: | { |
45: | return []; |
46: | } |
47: | |
48: | } |
49: | |