import { RacingDomainValidationError } from '../errors/RacingDomainError'; export class DriverName { private constructor(private readonly value: string) {} static create(value: string): DriverName { if (!value || value.trim().length === 0) { throw new RacingDomainValidationError('Driver name is required'); } return new DriverName(value.trim()); } toString(): string { return this.value; } equals(other: DriverName): boolean { return this.value === other.value; } }