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: /** @api */
10: class ReturnStatement
11: {
12:
13: private Node\Stmt\Return_ $returnNode;
14:
15: public function __construct(private Scope $scope, Return_ $returnNode)
16: {
17: $this->returnNode = $returnNode;
18: }
19:
20: public function getScope(): Scope
21: {
22: return $this->scope;
23: }
24:
25: public function getReturnNode(): Return_
26: {
27: return $this->returnNode;
28: }
29:
30: }
31: