original_string: public function getFileFromZip($file)
      {
          if (false !== $content = $this->zip->getFromName($file)) {
              $tmpDir = rtrim(sys_get_temp_dir(), DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR;
              $fileName = $tmpDir . md5($file) . time() . '.' . pathinfo($file, PATHINFO_EXTENSION);
              file_put_contents($fileName, $content);
  
              $this->destructible[] = $fileName;
  
              return $fileName;
          }
  
          return null;
      }
code: public function getFileFromZip($file)
      {
          if (false !== $content = $this->zip->getFromName($file)) {
              $tmpDir = rtrim(sys_get_temp_dir(), DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR;
              $fileName = $tmpDir . md5($file) . time() . '.' . pathinfo($file, PATHINFO_EXTENSION);
              file_put_contents($fileName, $content);
  
              $this->destructible[] = $fileName;
  
              return $fileName;
          }
  
          return null;
      }
code_tokens: public function getFileFromZip ( $ file ) { if ( false !== $ content = $ this -> zip -> getFromName ( $ file ) ) { $ tmpDir = rtrim ( sys_get_temp_dir ( ) , DIRECTORY_SEPARATOR ) . DIRECTORY_SEPARATOR ; $ fileName = $ tmpDir . md5 ( $ file ) . time ( ) . '.' . pathinfo ( $ file , PATHINFO_EXTENSION ) ; file_put_contents ( $ fileName , $ content ) ; $ this -> destructible [ ] = $ fileName ; return $ fileName ; } return null ; }
docstring: Retrieves a file from ZipArchive.
  
  @param $file
  
  @return null|string
docstring_tokens: Retrieves a file from ZipArchive .