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