1: <?php declare(strict_types = 1);
2:
3: namespace PHPStan\Node;
4:
5: use PHPStan\Turbo\ReferencedByTurboExtension;
6:
7: /**
8: * @api
9: */
10: #[ReferencedByTurboExtension(key: 'matchExpressionArm')]
11: final class MatchExpressionArm
12: {
13:
14: /**
15: * @param MatchExpressionArmCondition[] $conditions
16: */
17: public function __construct(private MatchExpressionArmBody $body, private array $conditions, private int $line)
18: {
19: }
20:
21: public function getBody(): MatchExpressionArmBody
22: {
23: return $this->body;
24: }
25:
26: /**
27: * @return MatchExpressionArmCondition[]
28: */
29: public function getConditions(): array
30: {
31: return $this->conditions;
32: }
33:
34: public function getLine(): int
35: {
36: return $this->line;
37: }
38:
39: }
40: