Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/demo.cartinsight.co/vendor/zbateson/mail-mime-parser/src/Message/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/demo.cartinsight.co/vendor/zbateson/mail-mime-parser/src/Message/NonMimePart.php
<?php
/**
 * This file is part of the ZBateson\MailMimeParser project.
 *
 * @license http://opensource.org/licenses/bsd-license.php BSD
 */

namespace ZBateson\MailMimeParser\Message;

/**
 * Represents part of a non-mime message.
 *
 * @author Zaahid Bateson
 */
abstract class NonMimePart extends MessagePart
{
    /**
     * Returns true.
     *
     */
    public function isTextPart() : bool
    {
        return true;
    }

    /**
     * Returns text/plain
     *
     * @return string
     */
    public function getContentType(string $default = 'text/plain') : ?string
    {
        return $default;
    }

    /**
     * Returns ISO-8859-1
     *
     * @return string
     */
    public function getCharset() : ?string
    {
        return 'ISO-8859-1';
    }

    /**
     * Returns 'inline'.
     *
     * @return string
     */
    public function getContentDisposition(?string $default = 'inline') : ?string
    {
        return 'inline';
    }

    /**
     * Returns '7bit'.
     *
     * @return string
     */
    public function getContentTransferEncoding(?string $default = '7bit') : ?string
    {
        return '7bit';
    }

    /**
     * Returns false.
     *
     */
    public function isMime() : bool
    {
        return false;
    }

    /**
     * Returns the Content ID of the part.
     *
     * NonMimeParts do not have a Content ID, and so this simply returns null.
     *
     */
    public function getContentId() : ?string
    {
        return null;
    }
}

Spamworldpro Mini