sfcod/email-engine

View on GitHub
Template/Attachments/AttachmentInterface.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace SfCod\EmailEngineBundle\Template\Attachments;

use SfCod\EmailEngineBundle\Template\TemplateOptionsInterface;

/**
 * Email attachment interface
 *
 * Interface AttachmentInterface
 *
 * @package SfCod\EmailEngineBundle\Template\Attachments
 */
interface AttachmentInterface
{
    /**
     * AttachmentInterface constructor.
     *
     * @param TemplateOptionsInterface $options
     */
    public function __construct(TemplateOptionsInterface $options);

    /**
     * Get attachment name
     *
     * @return string
     */
    public function getFileName(): string;

    /**
     * Get attachment content
     *
     * @return string
     */
    public function getFileContent(): string;
}