Class Header
Representation of header fields.
-
ICanBoogie\Mailer\Header
implements
ArrayAccess,
IteratorAggregate
Namespace: ICanBoogie\
Mailer
See:
http://tools.ietf.org/html/rfc5322#section-2.2
Located at Header.php
Methods summary
public
__construct( array $fields
= [] )
public
__toString( void )
: string
Returns the string representation of the instance.
Returns the string representation of the instance.
Header fields with empty string values are discarded.
Returns
string
public
offsetExists( mixed $field
)
: boolean
Checks if a header field exists.
Checks if a header field exists.
Parameters
Returns
boolean
Implementation of
ArrayAccess::offsetExists()
public
offsetGet( mixed $field
)
: string|null
Returns a header.
Parameters
Returns
string|null
The header field value or null if it is not defined.
Implementation of
ArrayAccess::offsetGet()
public
offsetSet( string $field
, mixed $value
)
Sets a header field.
Note: Setting a header field to null
removes it, just like unset() would.
Parameters
$field
- The header field to set.
$value
- The value of the header field.
Implementation of
ArrayAccess::offsetSet()
public
offsetUnset( string $field
)
Removes a header field.
Parameters
Implementation of
ArrayAccess::offsetUnset()
public
getIterator( void )
: ArrayIterator
Returns an iterator for the header fields.
Returns an iterator for the header fields.
Returns
ArrayIterator
Implementation of
IteratorAggregate::getIterator()
Properties summary
protected
$fields
: array
[]