| 1: | <?php declare(strict_types = 1); |
| 2: | |
| 3: | namespace PHPStan\Node; |
| 4: | |
| 5: | use PHPStan\Turbo\ReferencedByTurboExtension; |
| 6: | |
| 7: | |
| 8: | |
| 9: | |
| 10: | #[ReferencedByTurboExtension(key: 'gatheredClassMethod')] |
| 11: | final class ClassMethod |
| 12: | { |
| 13: | |
| 14: | public function __construct( |
| 15: | private \PhpParser\Node\Stmt\ClassMethod $node, |
| 16: | private bool $isDeclaredInTrait, |
| 17: | ) |
| 18: | { |
| 19: | } |
| 20: | |
| 21: | public function getNode(): \PhpParser\Node\Stmt\ClassMethod |
| 22: | { |
| 23: | return $this->node; |
| 24: | } |
| 25: | |
| 26: | public function isDeclaredInTrait(): bool |
| 27: | { |
| 28: | return $this->isDeclaredInTrait; |
| 29: | } |
| 30: | |
| 31: | } |
| 32: | |