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 array $conditions, private int $line) |
13: | { |
14: | } |
15: | |
16: | /** |
17: | * @return MatchExpressionArmCondition[] |
18: | */ |
19: | public function getConditions(): array |
20: | { |
21: | return $this->conditions; |
22: | } |
23: | |
24: | public function getLine(): int |
25: | { |
26: | return $this->line; |
27: | } |
28: | |
29: | } |
30: |