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