Responsible for creating Message instances.

author Zaahid Bateson
package MailMimeParser
inherited_from \ZBateson\MailMimeParser\Message\Part\Factory\MimePartFactory

 Methods

Constructor

__construct(\ZBateson\MailMimeParser\Stream\StreamFactory $sdf, \ZBateson\MailMimeParser\Message\Part\Factory\PartStreamFilterManagerFactory $psf, \ZBateson\MailMimeParser\Message\PartFilterFactory $pf, \ZBateson\MailMimeParser\Message\Helper\MessageHelperService $mhs) 
inherited_from \ZBateson\MailMimeParser\Message\Part\Factory\MimePartFactory::__construct()

Parameters

$sdf

\ZBateson\MailMimeParser\Stream\StreamFactory

$psf

\ZBateson\MailMimeParser\Message\Part\Factory\PartStreamFilterManagerFactory

$pf

\ZBateson\MailMimeParser\Message\PartFilterFactory

$mhs

\ZBateson\MailMimeParser\Message\Helper\MessageHelperService

Initializes class dependencies.

__construct(\ZBateson\MailMimeParser\Stream\StreamFactory $streamFactory, \ZBateson\MailMimeParser\Message\Part\Factory\PartStreamFilterManagerFactory $psf) 
Inherited

Parameters

$streamFactory

\ZBateson\MailMimeParser\Stream\StreamFactory

$psf

\ZBateson\MailMimeParser\Message\Part\Factory\PartStreamFilterManagerFactory

Returns the singleton instance for the class.

getInstance(\ZBateson\MailMimeParser\Stream\StreamFactory $sdf, \ZBateson\MailMimeParser\Message\Part\Factory\PartStreamFilterManagerFactory $psf, \ZBateson\MailMimeParser\Message\PartFilterFactory $pf = null, \ZBateson\MailMimeParser\Message\Helper\MessageHelperService $mhs = null) : \ZBateson\MailMimeParser\Message\Part\Factory\MessagePartFactory
InheritedStatic

Parameters

$sdf

\ZBateson\MailMimeParser\Stream\StreamFactory

$psf

\ZBateson\MailMimeParser\Message\Part\Factory\PartStreamFilterManagerFactory

$pf

\ZBateson\MailMimeParser\Message\PartFilterFactory

$mhs

\ZBateson\MailMimeParser\Message\Helper\MessageHelperService

Returns

\ZBateson\MailMimeParser\Message\Part\Factory\MessagePartFactory

Constructs a new Message object and returns it

newInstance(\ZBateson\MailMimeParser\Message\Part\PartBuilder $partBuilder, \Psr\Http\Message\StreamInterface $stream = null) : \ZBateson\MailMimeParser\Message\Part\MimePart
inherited_from \ZBateson\MailMimeParser\Message\Part\Factory\MimePartFactory::newInstance()

Parameters

$partBuilder

\ZBateson\MailMimeParser\Message\Part\PartBuilder

$stream

\Psr\Http\Message\StreamInterface

Returns

\ZBateson\MailMimeParser\Message\Part\MimePart

Constructs a new MessagePart object and returns it

newInstance(\ZBateson\MailMimeParser\Message\Part\PartBuilder $partBuilder, \Psr\Http\Message\StreamInterface $messageStream = null) : \ZBateson\MailMimeParser\Message\Part\MessagePart
Inherited

Parameters

$partBuilder

\ZBateson\MailMimeParser\Message\Part\PartBuilder

$messageStream

\Psr\Http\Message\StreamInterface

Returns

\ZBateson\MailMimeParser\Message\Part\MessagePart

Returns a cached singleton instance if one exists, or null if one hasn't been created yet.

getCachedInstance() : \ZBateson\MailMimeParser\Message\Part\Factory\MessagePartFactory
InheritedStatic

Returns

\ZBateson\MailMimeParser\Message\Part\Factory\MessagePartFactory

Sets a cached singleton instance.

setCachedInstance(\ZBateson\MailMimeParser\Message\Part\Factory\MessagePartFactory $instance) 
InheritedStatic

Parameters

$instance

\ZBateson\MailMimeParser\Message\Part\Factory\MessagePartFactory

 Properties

 

helper class for message manipulation routines.

$messageHelperService : \ZBateson\MailMimeParser\Message\Helper\MessageHelperService

Default

 

an instance used for creating MimePart objects

$partFilterFactory : \ZBateson\MailMimeParser\Message\PartFilterFactory

Default

 

responsible for creating PartStreamFilterManager instances

$partStreamFilterManagerFactory : \ZBateson\MailMimeParser\Message\Part\Factory\PartStreamFilterManagerFactory

Default

 

the StreamFactory instance

$streamFactory : \ZBateson\MailMimeParser\Stream\StreamFactory

Default

 

cached instances of MessagePartFactory sub-classes

$instances : array<mixed,\ZBateson\MailMimeParser\Message\Part\Factory\MessagePartFactory>

Default

null
Static