1: <?php declare(strict_types = 1);
2:
3: namespace PHPStan\Node;
4:
5: /**
6: * @api
7: */
8: final class ClassMethod
9: {
10:
11: public function __construct(
12: private \PhpParser\Node\Stmt\ClassMethod $node,
13: private bool $isDeclaredInTrait,
14: )
15: {
16: }
17:
18: public function getNode(): \PhpParser\Node\Stmt\ClassMethod
19: {
20: return $this->node;
21: }
22:
23: public function isDeclaredInTrait(): bool
24: {
25: return $this->isDeclaredInTrait;
26: }
27:
28: }
29: