for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of the ZBateson\MailMimeParser project.
*
* @license http://opensource.org/licenses/bsd-license.php BSD
*/
namespace ZBateson\MailMimeParser\Message\Part;
* Represents part of a non-mime message. The part could either be a plain text
* part or a uuencoded attachment and could be extended for other pre-mime
* message encoding types.
* This allows clients to handle all messages as mime messages by providing a
* Content-Type header. NonMimePart returns text/plain.
* @author Zaahid Bateson
class NonMimePart extends MessagePart
{
* Returns true.
* @return bool
public function isTextPart()
return true;
}
* Returns text/plain
* @return string
public function getContentType()
return 'text/plain';
* Returns ISO-8859-1
public function getCharset()
return 'ISO-8859-1';
* Returns 'inline'.
public function getContentDisposition()
return 'inline';
* Returns '7bit'.
public function getContentTransferEncoding()
return '7bit';
* Returns false.
public function isMime()
return false;
* Returns the Content ID of the part.
* NonMimeParts do not have a Content ID, and so this simply returns null.
* @return string|null
public function getContentId()
return null;