(anyPhaseId: number)
| 325 | } |
| 326 | |
| 327 | public repairPhaseId(anyPhaseId: number): number { |
| 328 | return Math.max(0, Math.min(anyPhaseId | 0, this.phases.length - 1)); |
| 329 | } |
| 330 | |
| 331 | public getPhase(phaseId: number): GenericPhase { |
| 332 | return this.phases[phaseId]; |