public function setCharset($charset)
    {
        if ($this->getContentType() == '') {
            throw new Exception\RuntimeException(__METHOD__ . ' Content-type must be specified prior to setting charset');
        }
        $this->params['content-type-charset'] = $charset;

        return $this;
    }
public function setCharset($charset)
    {
        if ($this->getContentType() == '') {
            throw new Exception\RuntimeException(__METHOD__ . ' Content-type must be specified prior to setting charset');
        }
        $this->params['content-type-charset'] = $charset;

        return $this;
    }
public function setCharset ( $ charset ) { if ( $ this -> getContentType ( ) == '' ) { throw new Exception \ RuntimeException ( __METHOD__ . ' Content-type must be specified prior to setting charset' ) ; } $ this -> params [ 'content-type-charset' ] = $ charset ; return $ this ; }
Set the content type charset.

@throws Exception\RuntimeException

@param string $charset

@return SimpleHeaders
Set the content type charset .