PHP Class Cmfcmf\OpenWeatherMap\Fetcher\CurlFetcher

Inheritance: implements Cmfcmf\OpenWeatherMap\Fetcher\FetcherInterface
Show file Open project: cmfcmf/openweathermap-php-api Class Usage Examples

Public Methods

Method Description
__construct ( array $curlOptions = [] ) Create a new CurlFetcher instance.
fetch ( $url )

Method Details

__construct() public method

Create a new CurlFetcher instance.
public __construct ( array $curlOptions = [] )
$curlOptions array The Curl options to use. See http://php.net/manual/de/function.curl-setopt.php for a list of available options.

fetch() public method

public fetch ( $url )