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