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