src/ProviderFoundation/TraversableValueContainer.php
public function get($key)
    {
        $ret = $this->traverseTree($key);
        if(!is_scalar($ret))
        {
            throw new UnexpectedValueException("The {$key} configuration value is not scalar");
        }
        return $ret;
    }
public function get($key)
    {
        $ret = $this->traverseTree($key);
        if(!is_scalar($ret))
        {
            throw new UnexpectedValueException("The {$key} configuration value is not scalar");
        }
        return $ret;
    }
public function get ( $ key ) { $ ret = $ this -> traverseTree ( $ key ) ; if ( ! is_scalar ( $ ret ) ) { throw new UnexpectedValueException ( "The {$key} configuration value is not scalar" ) ; } return $ ret ; }
Get a value for a configuration key

@param string $key The configuration key

@throws MissingKeyException if the path is unreachable
@throws UnexpectedValueException if the path is key is missing

@return string
Get a value for a configuration key