1: <?php declare(strict_types = 1);
2:
3: namespace PHPStan\Node\Constant;
4:
5: use PhpParser\Node\Expr\ClassConstFetch;
6: use PHPStan\Analyser\Scope;
7: use PHPStan\Turbo\ReferencedByTurboExtension;
8:
9: /**
10: * @api
11: */
12: #[ReferencedByTurboExtension(key: 'classConstantFetch')]
13: final class ClassConstantFetch
14: {
15:
16: public function __construct(private ClassConstFetch $node, private Scope $scope)
17: {
18: }
19:
20: public function getNode(): ClassConstFetch
21: {
22: return $this->node;
23: }
24:
25: public function getScope(): Scope
26: {
27: return $this->scope;
28: }
29:
30: }
31: