1: | <?php declare(strict_types = 1); |
2: | |
3: | namespace PHPStan\Node; |
4: | |
5: | use PhpParser\Node\Expr; |
6: | |
7: | /** |
8: | * @api |
9: | */ |
10: | final class IssetExpr extends Expr implements VirtualNode |
11: | { |
12: | |
13: | /** |
14: | * @api |
15: | */ |
16: | public function __construct( |
17: | private Expr $expr, |
18: | ) |
19: | { |
20: | parent::__construct([]); |
21: | } |
22: | |
23: | public function getExpr(): Expr |
24: | { |
25: | return $this->expr; |
26: | } |
27: | |
28: | public function getType(): string |
29: | { |
30: | return 'PHPStan_Node_IssetExpr'; |
31: | } |
32: | |
33: | /** |
34: | * @return string[] |
35: | */ |
36: | public function getSubNodeNames(): array |
37: | { |
38: | return []; |
39: | } |
40: | |
41: | } |
42: |