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