public function getValue($endpoint, $key)
    {
        if (isset($this->endpoints['endpoints'][$endpoint])
            && isset($this->endpoints['endpoints'][$endpoint][$key])
        ) {
            return $this->endpoints['endpoints'][$endpoint][$key];
        }

        if (isset($this->endpoints[$key])) {
            return $this->endpoints[$key];
        }

        return null;
    }
public function getValue($endpoint, $key)
    {
        if (isset($this->endpoints['endpoints'][$endpoint])
            && isset($this->endpoints['endpoints'][$endpoint][$key])
        ) {
            return $this->endpoints['endpoints'][$endpoint][$key];
        }

        if (isset($this->endpoints[$key])) {
            return $this->endpoints[$key];
        }

        return null;
    }
public function getValue ( $ endpoint , $ key ) { if ( isset ( $ this -> endpoints [ 'endpoints' ] [ $ endpoint ] ) && isset ( $ this -> endpoints [ 'endpoints' ] [ $ endpoint ] [ $ key ] ) ) { return $ this -> endpoints [ 'endpoints' ] [ $ endpoint ] [ $ key ] ; } if ( isset ( $ this -> endpoints [ $ key ] ) ) { return $ this -> endpoints [ $ key ] ; } return null ; }
Get configuration value

@param string $endpoint
@param string $key

@return mixed
Get configuration value