1: | <?php declare(strict_types = 1); |
2: | |
3: | namespace PHPStan\Node; |
4: | |
5: | use PhpParser\Node; |
6: | use PhpParser\Node\Stmt\Return_; |
7: | use PHPStan\Analyser\Scope; |
8: | |
9: | |
10: | |
11: | |
12: | |
13: | class ReturnStatement |
14: | { |
15: | |
16: | private Node\Stmt\Return_ $returnNode; |
17: | |
18: | public function __construct(private Scope $scope, Return_ $returnNode) |
19: | { |
20: | $this->returnNode = $returnNode; |
21: | } |
22: | |
23: | public function getScope(): Scope |
24: | { |
25: | return $this->scope; |
26: | } |
27: | |
28: | public function getReturnNode(): Return_ |
29: | { |
30: | return $this->returnNode; |
31: | } |
32: | |
33: | } |
34: | |