Set the configuration object to use with the client
array|Collection|string $config Parameters that define how the client behaves and connects to a: webservice. Pass an array or a Collection object.
Overrides ClientInterface::setConfig
public final function setConfig($config) {
// Set the configuration object
if ($config instanceof Collection) {
$this->config = $config;
}
elseif (is_array($config)) {
$this->config = new Collection($config);
}
else {
throw new InvalidArgumentException('Config must be an array or Collection');
}
return $this;
}