protected function getNumeric($section, $key, $default = null, $required = true)
{
$rawVal = $this->getValue($section, $key, $default, $required);
if (ctype_digit($rawVal)) {
return intval($rawVal);
}
if (is_numeric($rawVal)) {
return $rawVal;
}
throw new ConfigurationTypeConversionException("Non-numeric provided for {$section}.{$key}");
}