original_string: public function setCharset($charset)
      {
          $this->charset = $charset;
          if (!$this->headerCharset) {
              $this->headerCharset = $charset;
          }
  
          return $this;
      }
code: public function setCharset($charset)
      {
          $this->charset = $charset;
          if (!$this->headerCharset) {
              $this->headerCharset = $charset;
          }
  
          return $this;
      }
code_tokens: public function setCharset ( $ charset ) { $ this -> charset = $ charset ; if ( ! $ this -> headerCharset ) { $ this -> headerCharset = $ charset ; } return $ this ; }
docstring: Charset setter.
  
  @param string|null $charset Character set.
  @return $this
docstring_tokens: Charset setter .