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: /** @api */
10: class InClassNode extends Node\Stmt implements VirtualNode
11: {
12:
13: public function __construct(private ClassLike $originalNode, private ClassReflection $classReflection)
14: {
15: parent::__construct($originalNode->getAttributes());
16: }
17:
18: public function getOriginalNode(): ClassLike
19: {
20: return $this->originalNode;
21: }
22:
23: public function getClassReflection(): ClassReflection
24: {
25: return $this->classReflection;
26: }
27:
28: public function getType(): string
29: {
30: return 'PHPStan_Stmt_InClassNode';
31: }
32:
33: /**
34: * @return string[]
35: */
36: public function getSubNodeNames(): array
37: {
38: return [];
39: }
40:
41: }
42: