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