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