/** * @param RequestInterface $request * * @return $this; */ public function authenticate(RequestInterface $request) { $request->setOption('auth', [$this->getLogin(), $this->getPassword()]); return $this; }
/** * @param RequestInterface $request * * @return $this */ protected function mergeBuilderParams(RequestInterface $request) { if ($request->getMethod() == 'GET') { $request->setParams(array_merge($request->getParams(), $this->builder->toParams())); } return $this; }