1: | <?php declare(strict_types = 1); |
2: | |
3: | namespace PHPStan\Analyser; |
4: | |
5: | use PHPStan\DependencyInjection\AutowiredService; |
6: | |
7: | /** |
8: | * @api |
9: | */ |
10: | #[AutowiredService] |
11: | final class ScopeFactory |
12: | { |
13: | |
14: | public function __construct(private InternalScopeFactory $internalScopeFactory) |
15: | { |
16: | } |
17: | |
18: | public function create(ScopeContext $context): MutatingScope |
19: | { |
20: | return $this->internalScopeFactory->create($context); |
21: | } |
22: | |
23: | } |
24: |