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