Zend\Mail\AddressList
Synopsis
class AddressList
implements
Countable,Iterator
{
- // members
- protected array $addresses;
- // methods
- public AddressList add()
- public AddressList addMany()
- public AddressList merge()
- public bool has()
- public AddressInterface get()
- public bool delete()
- public int count()
- public mixed rewind()
- public Address current()
- public string key()
- public mixed next()
- public bool valid()
- protected Address createAddress()
Hierarchy
Members
protected
- $addresses
—
array
List of Address objects we're managing
Methods
protected
- createAddress() — Create an address object
public
- add() — Add an address to the list
- addMany() — Add many addresses at once
- count() — Return count of addresses
- current() — Return current item in iteration
- delete() — Delete an address from the list
- get() — Get an address by email
- has() — Does the email exist in this list?
- key() — Return key of current item of iteration
- merge() — Merge another address list into this one
- next() — Move to next item
- rewind() — Rewind iterator
- valid() — Is the current item of iteration valid?