private function createPositiveIntegerValidatorClosure() : \Closure
{
return function ($value) {
if (is_int($value) && 0 < $value) {
return $value;
}
throw InvalidArgumentExceptionFactory::createForExpectedConfigurationPositiveIntegerValue($value);
};
}