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