1: <?php declare(strict_types = 1);
2:
3: namespace PHPStan\Node;
4:
5: use PhpParser\Node\Expr;
6: use PhpParser\Node\Expr\BinaryOp\BooleanAnd;
7: use PhpParser\Node\Expr\BinaryOp\LogicalAnd;
8: use PHPStan\Analyser\Scope;
9:
10: /**
11: * @api
12: * @final
13: */
14: class BooleanAndNode extends Expr implements VirtualNode
15: {
16:
17: public function __construct(private BooleanAnd|LogicalAnd $originalNode, private Scope $rightScope)
18: {
19: parent::__construct($originalNode->getAttributes());
20: }
21:
22: /**
23: * @return BooleanAnd|LogicalAnd
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_BooleanAndNode';
38: }
39:
40: /**
41: * @return string[]
42: */
43: public function getSubNodeNames(): array
44: {
45: return [];
46: }
47:
48: }
49: