0) && ($value < DomainController::NUMBER_MAX)) || ($value === 'no'); } /** * Get the validation error message. * * @return string */ public function message() { return sprintf('The number must be between 1 and %d.',DomainController::NUMBER_MAX); } }