1: <?php declare(strict_types = 1);
2:
3: namespace PHPStan\Node;
4:
5: use PhpParser\Node\Expr;
6: use PHPStan\Analyser\Scope;
7: use PHPStan\Turbo\ReferencedByTurboExtension;
8:
9: /**
10: * @api
11: */
12: #[ReferencedByTurboExtension(key: 'matchExpressionArmBody')]
13: final class MatchExpressionArmBody
14: {
15:
16: public function __construct(private Scope $scope, private Expr $body)
17: {
18: }
19:
20: public function getScope(): Scope
21: {
22: return $this->scope;
23: }
24:
25: public function getBody(): Expr
26: {
27: return $this->body;
28: }
29:
30: }
31: