client = new Psr18Client( $guzzle, $factory, $factory, $url, $apikeyOrUsername, $password ); } public function __call($name, $arguments) { if (!method_exists($this->client, $name)) { throw new \BadMethodCallException(sprintf( 'Method %s, doesn\'t exist in class %s', $name, get_class($this->client) )); } return call_user_func_array([$this->client, $name], $arguments); } }