EmailAddressSet
in package
implements
XmlSerializable
email-address-set property.
This property represents the email-address-set property in the http://calendarserver.org/ns/ namespace.
It's a list of email addresses associated with a user.
Tags
Interfaces, Classes and Traits
- XmlSerializable
- Objects implementing XmlSerializable can control how they are represented in Xml.
Table of Contents
- $emails : array<string|int, mixed>
- emails.
- __construct() : mixed
- __construct.
- getValue() : array<string|int, mixed>
- Returns the email addresses.
- xmlSerialize() : mixed
- The xmlSerialize method is called during xml writing.
Properties
$emails
emails.
private
array<string|int, mixed>
$emails
Methods
__construct()
__construct.
public
__construct(array<string|int, mixed> $emails) : mixed
Parameters
- $emails : array<string|int, mixed>
Return values
mixed —getValue()
Returns the email addresses.
public
getValue() : array<string|int, mixed>
Return values
array<string|int, mixed> —xmlSerialize()
The xmlSerialize method is called during xml writing.
public
xmlSerialize(Writer $writer) : mixed
Use the $writer argument to write its own xml serialization.
An important note: do not create a parent element. Any element implementing XmlSerializable should only ever write what's considered its 'inner xml'.
The parent of the current element is responsible for writing a containing element.
This allows serializers to be re-used for different element names.
If you are opening new elements, you must also close them again.
Parameters
- $writer : Writer