Add an address to the list
| Parameters: |
|
|---|---|
| Throws ExceptionInvalidArgumentException: | |
| Return type: | AddressList |
Add many addresses at once
If an email key is provided, it will be used as the email, and the value as the name. Otherwise, the value is passed as the sole argument to add(), and, as such, can be either email strings or AddressAddressInterface objects.
| Parameters: | array – |
|---|---|
| Throws ExceptionRuntimeException: | |
| Return type: | AddressList |
Merge another address list into this one
| Parameters: | AddressList – |
|---|---|
| Return type: | AddressList |
Does the email exist in this list?
| Parameters: | string – |
|---|---|
| Return type: | bool |
Get an address by email
| Parameters: | string – |
|---|---|
| Return type: | bool|AddressAddressInterface |
Delete an address from the list
| Parameters: | string – |
|---|---|
| Return type: | bool |
Return count of addresses
| Return type: | int |
|---|
Rewind iterator
| Return type: | mixed the value of the first addresses element, or false if the addresses is |
|---|
empty.
see:
Return current item in iteration
| Return type: | Address |
|---|
Return key of current item of iteration
| Return type: | string |
|---|
Move to next item
| Return type: | mixed the addresses value in the next place that’s pointed to by the |
|---|
internal array pointer, or false if there are no more elements.
see:
Is the current item of iteration valid?
| Return type: | bool |
|---|