public function getType($charset = false)
    {
        $ct = $this->_headers['content-type'];

        return $charset
            ? $ct->type_charset
            : $ct->value;
    }
public function getType($charset = false)
    {
        $ct = $this->_headers['content-type'];

        return $charset
            ? $ct->type_charset
            : $ct->value;
    }
public function getType ( $ charset = false ) { $ ct = $ this -> _headers [ 'content-type' ] ; return $ charset ? $ ct -> type_charset : $ ct -> value ; }
Get the full MIME Content-Type of this part.

@param boolean $charset  Append character set information to the end
of the content type if this is a text/* part?
`
@return string  The MIME type of this part.
Get the full MIME Content - Type of this part .