1: <?php declare(strict_types = 1);
2:
3: namespace PHPStan\Node;
4:
5: use PhpParser\Node;
6: use PHPStan\Reflection\Php\PhpFunctionFromParserNodeReflection;
7:
8: /**
9: * @api
10: */
11: final class InFunctionNode extends Node\Stmt implements VirtualNode
12: {
13:
14: public function __construct(
15: private PhpFunctionFromParserNodeReflection $functionReflection,
16: private Node\Stmt\Function_ $originalNode,
17: )
18: {
19: parent::__construct($originalNode->getAttributes());
20: }
21:
22: public function getFunctionReflection(): PhpFunctionFromParserNodeReflection
23: {
24: return $this->functionReflection;
25: }
26:
27: public function getOriginalNode(): Node\Stmt\Function_
28: {
29: return $this->originalNode;
30: }
31:
32: public function getType(): string
33: {
34: return 'PHPStan_Stmt_InFunctionNode';
35: }
36:
37: /**
38: * @return string[]
39: */
40: public function getSubNodeNames(): array
41: {
42: return [];
43: }
44:
45: }
46: