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: 'matchExpressionArmCondition')]
13: final class MatchExpressionArmCondition
14: {
15:
16: public function __construct(private Expr $condition, private Scope $scope, private int $line)
17: {
18: }
19:
20: public function getCondition(): Expr
21: {
22: return $this->condition;
23: }
24:
25: public function getScope(): Scope
26: {
27: return $this->scope;
28: }
29:
30: public function getLine(): int
31: {
32: return $this->line;
33: }
34:
35: }
36: