UUEncodedPartFactory extends MessagePartFactory
Responsible for creating UUEncodedPart instances.
Tags
Table of Contents
- $partStreamFilterManagerFactory : PartStreamFilterManagerFactory
- $streamFactory : StreamFactory
- $instances : array<string|int, MessagePartFactory>
- __construct() : mixed
- Initializes class dependencies.
- getInstance() : MessagePartFactory
- Returns the singleton instance for the class.
- newInstance() : NonMimePart
- Constructs a new UUEncodedPart object and returns it
- getCachedInstance() : MessagePartFactory
- Returns a cached singleton instance if one exists, or null if one hasn't been created yet.
- setCachedInstance() : mixed
- Sets a cached singleton instance.
Properties
$partStreamFilterManagerFactory
protected
PartStreamFilterManagerFactory
$partStreamFilterManagerFactory
$streamFactory
protected
StreamFactory
$streamFactory
$instances
private
static array<string|int, MessagePartFactory>
$instances
= null
Methods
__construct()
Initializes class dependencies.
public
__construct(StreamFactory $streamFactory, PartStreamFilterManagerFactory $psf) : mixed
Parameters
- $streamFactory : StreamFactory
- $psf : PartStreamFilterManagerFactory
Return values
mixed —getInstance()
Returns the singleton instance for the class.
public
static getInstance(StreamFactory $sdf, PartStreamFilterManagerFactory $psf[, PartFilterFactory $pf = null ][, MessageHelperService $mhs = null ]) : MessagePartFactory
Parameters
- $sdf : StreamFactory
- $psf : PartStreamFilterManagerFactory
- $pf : PartFilterFactory = null
- $mhs : MessageHelperService = null
Return values
MessagePartFactory —newInstance()
Constructs a new UUEncodedPart object and returns it
public
newInstance(PartBuilder $partBuilder[, StreamInterface $messageStream = null ]) : NonMimePart
Parameters
- $partBuilder : PartBuilder
- $messageStream : StreamInterface = null
Return values
NonMimePart —getCachedInstance()
Returns a cached singleton instance if one exists, or null if one hasn't been created yet.
protected
static getCachedInstance() : MessagePartFactory
Return values
MessagePartFactory —setCachedInstance()
Sets a cached singleton instance.
protected
static setCachedInstance(MessagePartFactory $instance) : mixed
Parameters
- $instance : MessagePartFactory