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