IMP_Compose::replyType PHP Method

replyType() public method

Return the reply type.
public replyType ( boolean $base = false ) : string
$base boolean Return the base reply type?
return string The reply type, or null if not a reply.
    public function replyType($base = false)
    {
        switch ($this->_replytype) {
            case self::FORWARD:
            case self::FORWARD_ATTACH:
            case self::FORWARD_BODY:
            case self::FORWARD_BOTH:
                return $base ? self::FORWARD : $this->_replytype;
            case self::REPLY:
            case self::REPLY_ALL:
            case self::REPLY_LIST:
            case self::REPLY_SENDER:
                return $base ? self::REPLY : $this->_replytype;
            case self::REDIRECT:
                return $this->_replytype;
            default:
                return null;
        }
    }