16 lines
374 B
TypeScript
16 lines
374 B
TypeScript
import { RacingDomainValidationError } from '../errors/RacingDomainError';
|
|
|
|
export class LeagueTimezone {
|
|
private readonly id: string;
|
|
|
|
constructor(id: string) {
|
|
if (!id || id.trim().length === 0) {
|
|
throw new RacingDomainValidationError('LeagueTimezone id must be a non-empty string');
|
|
}
|
|
this.id = id;
|
|
}
|
|
|
|
getId(): string {
|
|
return this.id;
|
|
}
|
|
} |