brightnucleus/chainmail

View on GitHub
src/Mail/HTMLMail.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php
/**
 * BrightNucleus ChainMail Component.
 *
 * @package   BrightNucleus/ChainMail
 * @author    Alain Schlesser <alain.schlesser@gmail.com>
 * @license   MIT
 * @link      http://www.brightnucleus.com/
 * @copyright 2016 Alain Schlesser, Bright Nucleus
 */

namespace BrightNucleus\ChainMail\Mail;

/**
 * Class HTMLMail.
 *
 * @since   1.0.0
 *
 * @package BrightNucleus\ChainMail
 * @author  Alain Schlesser <alain.schlesser@gmail.com>
 */
class HTMLMail extends AbstractMail
{

    /**
     * Set the format of the mail.
     *
     * @since 1.0.0
     */
    protected function setFormat()
    {
        $this->format = 'html';
    }

    /**
     * Set the context of the renderer.
     *
     * @since 1.0.0
     *
     * @param array $context Context to set/modify.
     *
     * @return array Updated context.
     */
    protected function setContext(array $context)
    {
        return $context;
    }
}