public function getContent($charset = MailMimeParser::DEFAULT_CHARSET)
    {
        $stream = $this->getContentStream($charset);
        if ($stream !== null) {
            return $stream->getContents();
        }
        return null;
    }
public function getContent($charset = MailMimeParser::DEFAULT_CHARSET)
    {
        $stream = $this->getContentStream($charset);
        if ($stream !== null) {
            return $stream->getContents();
        }
        return null;
    }
public function getContent ( $ charset = MailMimeParser :: DEFAULT_CHARSET ) { $ stream = $ this -> getContentStream ( $ charset ) ; if ( $ stream !== null ) { return $ stream -> getContents ( ) ; } return null ; }
Shortcut to reading stream content and assigning it to a string.  Returns
null if the part doesn't have a content stream.

The returned string is encoded to the passed $charset character encoding,
defaulting to UTF-8.

@see MessagePart::getContentStream()
@param string $charset
@return string
Shortcut to reading stream content and assigning it to a string . Returns null if the part doesn t have a content stream .