src/ClientAdapters/FileGetContentsClientAdapter.php
public function getForecast($latitude, $longitude, \DateTime $time = null, array $parameters = null)
    {
        $this->requestedUrl = $this->buildRequestURL($latitude, $longitude, $time, $parameters);

        $this->response = json_decode(file_get_contents($this->requestedUrl), true);
        $this->responseHeaders = $this->parseForecastResponseHeaders($http_response_header);

        return $this->response;
    }
public function getForecast($latitude, $longitude, \DateTime $time = null, array $parameters = null)
    {
        $this->requestedUrl = $this->buildRequestURL($latitude, $longitude, $time, $parameters);

        $this->response = json_decode(file_get_contents($this->requestedUrl), true);
        $this->responseHeaders = $this->parseForecastResponseHeaders($http_response_header);

        return $this->response;
    }
public function getForecast ( $ latitude , $ longitude , \ DateTime $ time = null , array $ parameters = null ) { $ this -> requestedUrl = $ this -> buildRequestURL ( $ latitude , $ longitude , $ time , $ parameters ) ; $ this -> response = json_decode ( file_get_contents ( $ this -> requestedUrl ) , true ) ; $ this -> responseHeaders = $ this -> parseForecastResponseHeaders ( $ http_response_header ) ; return $ this -> response ; }
Returns the response data from the Dark Sky API in the
form of an array

@param float $latitude
@param float $longitude
@param \DateTime $time
@param array $parameters

@return array
Returns the response data from the Dark Sky API in the form of an array