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