Bart\Configuration\Configuration::getNumeric PHP Метод

getNumeric() защищенный Метод

http://stackoverflow.com/questions/12650802/php-equivalent-of-javascripts-parseint-function
protected getNumeric ( $section, $key, $default = null, $required = true )
    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}");
    }