code: private function rotateByCopy($rotateFile, $newFile)
      {
          @copy($rotateFile, $newFile);
          if ($this->fileMode !== null) {
              @chmod($newFile, $this->fileMode);
          }
      }
docs: *
  Copy rotated file into new file
  @param string $rotateFile
  @param string $newFile