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