/**
  * @param UpdateTagOptions $options
  *
  * @return Tag
  */
 public function update(UpdateTagOptions $options)
 {
     if (!$options->validate()) {
         throw new InvalidParamException(VarDumper::dumpAsString($options->getErrors()));
     }
     $httpClient = $this->yandexFotki->getApiHttpClient();
     $request = $httpClient->put("tag/{$options->id}", $options->toArray());
     $response = $request->send();
     $model = $this->yandexFotki->getFactory()->getTagModel();
     $model->loadWithData($response->getData(), true);
     return $model;
 }