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