HeaderPartFactory
in package
Constructs and returns IHeaderPart objects.
Tags
Table of Contents
- $charsetConverter : MbWrapper
- __construct() : mixed
- Sets up dependencies.
- newAddressGroupPart() : AddressGroupPart
- Initializes and returns a new AddressGroupPart
- newAddressPart() : AddressPart
- Initializes and returns a new AddressPart.
- newCommentPart() : CommentPart
- Initializes and returns a new CommentPart.
- newDatePart() : DatePart
- Initializes and returns a new DatePart
- newInstance() : IHeaderPart
- Creates and returns a default IHeaderPart for this factory, allowing subclass factories for specialized IHeaderParts.
- newLiteralPart() : LiteralPart
- Initializes and returns a new LiteralPart.
- newMimeLiteralPart() : MimeLiteralPart
- Initializes and returns a new MimeLiteralPart.
- newParameterPart() : ParameterPart
- Initializes and returns a new ParameterPart.
- newReceivedDomainPart() : ReceivedDomainPart
- Initializes and returns a new ReceivedDomainPart.
- newReceivedPart() : ReceivedPart
- Initializes and returns a new ReceivedPart.
- newSplitParameterToken() : SplitParameterToken
- Instantiates and returns a SplitParameterToken with the given name.
- newToken() : Token
- Initializes and returns a new Token.
Properties
$charsetConverter
protected
MbWrapper
$charsetConverter
passed to IHeaderPart constructors for converting strings in IHeaderPart::convertEncoding
Methods
__construct()
Sets up dependencies.
public
__construct(MbWrapper $charsetConverter) : mixed
Parameters
- $charsetConverter : MbWrapper
Return values
mixed —newAddressGroupPart()
Initializes and returns a new AddressGroupPart
public
newAddressGroupPart(array<string|int, mixed> $addresses[, string $name = '' ]) : AddressGroupPart
Parameters
- $addresses : array<string|int, mixed>
- $name : string = ''
Return values
AddressGroupPart —newAddressPart()
Initializes and returns a new AddressPart.
public
newAddressPart(string $name, string $email) : AddressPart
Parameters
- $name : string
- $email : string
Return values
AddressPart —newCommentPart()
Initializes and returns a new CommentPart.
public
newCommentPart(string $value) : CommentPart
Parameters
- $value : string
Return values
CommentPart —newDatePart()
Initializes and returns a new DatePart
public
newDatePart(string $value) : DatePart
Parameters
- $value : string
Return values
DatePart —newInstance()
Creates and returns a default IHeaderPart for this factory, allowing subclass factories for specialized IHeaderParts.
public
newInstance(string $value) : IHeaderPart
The default implementation returns a new Token.
Parameters
- $value : string
Return values
IHeaderPart —newLiteralPart()
Initializes and returns a new LiteralPart.
public
newLiteralPart(string $value) : LiteralPart
Parameters
- $value : string
Return values
LiteralPart —newMimeLiteralPart()
Initializes and returns a new MimeLiteralPart.
public
newMimeLiteralPart(string $value) : MimeLiteralPart
Parameters
- $value : string
Return values
MimeLiteralPart —newParameterPart()
Initializes and returns a new ParameterPart.
public
newParameterPart(string $name, string $value[, string $language = null ]) : ParameterPart
Parameters
- $name : string
- $value : string
- $language : string = null
Return values
ParameterPart —newReceivedDomainPart()
Initializes and returns a new ReceivedDomainPart.
public
newReceivedDomainPart(string $name, string $value[, string $ehloName = null ][, string $hostName = null ][, string $hostAddress = null ]) : ReceivedDomainPart
Parameters
- $name : string
- $value : string
- $ehloName : string = null
- $hostName : string = null
- $hostAddress : string = null
Return values
ReceivedDomainPart —newReceivedPart()
Initializes and returns a new ReceivedPart.
public
newReceivedPart(string $name, string $value) : ReceivedPart
Parameters
- $name : string
- $value : string
Return values
ReceivedPart —newSplitParameterToken()
Instantiates and returns a SplitParameterToken with the given name.
public
newSplitParameterToken(string $name) : SplitParameterToken
Parameters
- $name : string
Return values
SplitParameterToken —newToken()
Initializes and returns a new Token.
public
newToken(string $value) : Token
Parameters
- $value : string