Wraps a standard PHP array in an interator.

package Swift
subpackage Mailer
author Chris Corbyn

 Methods

Create a new ArrayRecipientIterator from $recipients.

__construct(array $recipients) 

Parameters

$recipients

array

Returns true only if there are more recipients to send to.

hasNext() : boolean

Returns

boolean

Returns an array where the keys are the addresses of recipients and the values are the names.

nextRecipient() : array

e.g. ('foo@bar' => 'Foo') or ('foo@bar' => NULL)

Returns

array

 Properties

 

$_recipients : array
access private