4 * This file is part of SwiftMailer.
5 * (c) 2004-2009 Chris Corbyn
7 * For the full copyright and license information, please view the LICENSE
8 * file that was distributed with this source code.
12 * Provides an abstract way of specifying recipients for batch sending.
15 * @author Chris Corbyn
17 interface Swift_Mailer_RecipientIterator
21 * Returns true only if there are more recipients to send to.
24 public function hasNext();
27 * Returns an array where the keys are the addresses of recipients and the
28 * values are the names.
29 * e.g. ('foo@bar' => 'Foo') or ('foo@bar' => NULL)
32 public function nextRecipient();