28 lines
592 B
PHP
28 lines
592 B
PHP
|
|
<?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);
|
||
|
|
}
|
||
|
|
}
|