original_string: public function putContents( $contents, $ex_lock = false ) : int
      {
          $flags = $ex_lock ? LOCK_EX : 0;
          $res = file_put_contents( $this->path, $contents, $flags );
          if ($res === FALSE){
              throw new FileOutputException($this);
          }
          return $res;
      }
code: public function putContents( $contents, $ex_lock = false ) : int
      {
          $flags = $ex_lock ? LOCK_EX : 0;
          $res = file_put_contents( $this->path, $contents, $flags );
          if ($res === FALSE){
              throw new FileOutputException($this);
          }
          return $res;
      }
code_tokens: public function putContents ( $ contents , $ ex_lock = false ) : int { $ flags = $ ex_lock ? LOCK_EX : 0 ; $ res = file_put_contents ( $ this -> path , $ contents , $ flags ) ; if ( $ res === FALSE ) { throw new FileOutputException ( $ this ) ; } return $ res ; }
docstring: Save string data as a file
  
  @param string $contents
  @param bool $ex_lock
  
  @return int
  
  @throws FileOutputException
docstring_tokens: Save string data as a file