glastree_on_gitea
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
/**
|
||||
* This file is part of the ZBateson\MailMimeParser project.
|
||||
*
|
||||
* @license http://opensource.org/licenses/bsd-license.php BSD
|
||||
*/
|
||||
|
||||
namespace ZBateson\MailMimeParser\Header\Part;
|
||||
|
||||
use ZBateson\MailMimeParser\Header\IHeaderPart;
|
||||
|
||||
/**
|
||||
* Extends HeaderPartFactory to instantiate MimeTokens for its
|
||||
* newInstance method.
|
||||
*
|
||||
* @author Zaahid Bateson
|
||||
*/
|
||||
class MimeTokenPartFactory extends HeaderPartFactory
|
||||
{
|
||||
/**
|
||||
* Creates and returns a MimeToken.
|
||||
*/
|
||||
public function newInstance(string $value) : IHeaderPart
|
||||
{
|
||||
return $this->newMimeToken($value);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user