mirror of
https://github.com/itflow-org/itflow
synced 2026-03-13 17:24:51 +00:00
38 lines
960 B
PHP
38 lines
960 B
PHP
<?php
|
|
/**
|
|
* This file is part of the ZBateson\MailMimeParser project.
|
|
*
|
|
* @license http://opensource.org/licenses/bsd-license.php BSD
|
|
*/
|
|
|
|
namespace ZBateson\MailMimeParser\Message\Helper;
|
|
|
|
use ZBateson\MailMimeParser\Message\Factory\IMimePartFactory;
|
|
use ZBateson\MailMimeParser\Message\Factory\IUUEncodedPartFactory;
|
|
|
|
/**
|
|
* Base class for message helpers.
|
|
*
|
|
* @author Zaahid Bateson
|
|
*/
|
|
abstract class AbstractHelper
|
|
{
|
|
/**
|
|
* @var IMimePartFactory to create parts for attachments/content
|
|
*/
|
|
protected IMimePartFactory $mimePartFactory;
|
|
|
|
/**
|
|
* @var IUUEncodedPartFactory to create parts for attachments
|
|
*/
|
|
protected IUUEncodedPartFactory $uuEncodedPartFactory;
|
|
|
|
public function __construct(
|
|
IMimePartFactory $mimePartFactory,
|
|
IUUEncodedPartFactory $uuEncodedPartFactory
|
|
) {
|
|
$this->mimePartFactory = $mimePartFactory;
|
|
$this->uuEncodedPartFactory = $uuEncodedPartFactory;
|
|
}
|
|
}
|