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