| 1: | <?php declare(strict_types = 1); |
| 2: | |
| 3: | namespace PHPStan\Node; |
| 4: | |
| 5: | use PhpParser\Node\Expr; |
| 6: | use PHPStan\Analyser\Scope; |
| 7: | use PHPStan\Turbo\ReferencedByTurboExtension; |
| 8: | |
| 9: | |
| 10: | |
| 11: | |
| 12: | |
| 13: | |
| 14: | |
| 15: | |
| 16: | #[ReferencedByTurboExtension(key: 'switchConditionArm')] |
| 17: | final class SwitchConditionArm |
| 18: | { |
| 19: | |
| 20: | public function __construct( |
| 21: | private Expr $caseCondition, |
| 22: | private Scope $scope, |
| 23: | private int $line, |
| 24: | private bool $isLast, |
| 25: | ) |
| 26: | { |
| 27: | } |
| 28: | |
| 29: | public function getCaseCondition(): Expr |
| 30: | { |
| 31: | return $this->caseCondition; |
| 32: | } |
| 33: | |
| 34: | public function getScope(): Scope |
| 35: | { |
| 36: | return $this->scope; |
| 37: | } |
| 38: | |
| 39: | public function getLine(): int |
| 40: | { |
| 41: | return $this->line; |
| 42: | } |
| 43: | |
| 44: | |
| 45: | |
| 46: | |
| 47: | |
| 48: | |
| 49: | |
| 50: | public function isLast(): bool |
| 51: | { |
| 52: | return $this->isLast; |
| 53: | } |
| 54: | |
| 55: | } |
| 56: | |