public function __construct($api_key, GuzzleClient $http_client = null) { if (!isset($api_key)) { throw new Exceptions\InvalidParameterException("API Key parameter is empty"); } if (!isset($http_client)) { $http_client = new GuzzleClient(); } $this->api_key = $api_key; $this->http_client = $http_client; }