original_string: public function write($content)
      {
          fseek($this->resource, $this->writePosition);
          if(false === fwrite($this->resource, $content))
              throw new ResourceException("Unable to write content to resource");
          $this->writePosition = ftell($this->resource);
          return $this;
      }
code: public function write($content)
      {
          fseek($this->resource, $this->writePosition);
          if(false === fwrite($this->resource, $content))
              throw new ResourceException("Unable to write content to resource");
          $this->writePosition = ftell($this->resource);
          return $this;
      }
code_tokens: public function write ( $ content ) { fseek ( $ this -> resource , $ this -> writePosition ) ; if ( false === fwrite ( $ this -> resource , $ content ) ) throw new ResourceException ( "Unable to write content to resource" ) ; $ this -> writePosition = ftell ( $ this -> resource ) ; return $ this ; }
docstring: Writes content.
  
  @return self
docstring_tokens: Writes content .