code: public function copy($originUrl, $fileUrl, $fileName, $progress = true, $options = [])
      {
          $options = array_replace_recursive($this->nextOptions, $options);
          $this->nextOptions = [];
          $rfs = clone $this;
          $rfs->fileName = $fileName;
          $rfs->progress = $this->progress && $progress;
  
          try {
              return $rfs->get($originUrl, $fileUrl, $options, $fileName, $rfs->progress);
          } finally {
              $rfs->lastHeaders = null;
              $this->lastHeaders = $rfs->getLastHeaders();
          }
      }
docs: {@inheritdoc}