diff --git a/src/Service.php b/src/Service.php index 9ea5f71..8c25ea9 100644 --- a/src/Service.php +++ b/src/Service.php @@ -45,6 +45,8 @@ class Service extends Component implements ServiceInterface * Initializes the object. * This method is invoked at the end of the constructor after the object is initialized with the * given configuration. + * + * @throws InvalidConfigException */ public function init() { @@ -150,6 +152,14 @@ public function setDebug($debug) $this->clientConfig['debug'] = $debug; } + /** + * @param array $options + */ + public function setHttpOptions(array $options) + { + $this->clientConfig['http'] = $options; + } + /** * @param string|array|object $resolver */