original_string: public function set($path, $create = false)
      {
          $zip = $this->zip;
          $flag = $create ? $zip::CREATE : null;
  
          if ($this->zip->open($path, $flag) !== true) {
              throw new RuntimeException("Failed to open ZIP file $path");
          }
  
          return $this;
      }
code: public function set($path, $create = false)
      {
          $zip = $this->zip;
          $flag = $create ? $zip::CREATE : null;
  
          if ($this->zip->open($path, $flag) !== true) {
              throw new RuntimeException("Failed to open ZIP file $path");
          }
  
          return $this;
      }
code_tokens: public function set ( $ path , $ create = false ) { $ zip = $ this -> zip ; $ flag = $ create ? $ zip :: CREATE : null ; if ( $ this -> zip -> open ( $ path , $ flag ) !== true ) { throw new RuntimeException ( "Failed to open ZIP file $path" ) ; } return $ this ; }
docstring: Sets a file path
  @param string $path
  @param bool $create
  @throws RuntimeException
  @return $this
docstring_tokens: Sets a file path