Avail feature updated
[ninja.git] / application / vendor / swiftmailer / classes / Swift / Mailer / RecipientIterator.php
blob2713841663b779d39c4b8041f33def33e5c66991
1 <?php
3 /*
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.
9 */
11 /**
12 * Provides an abstract way of specifying recipients for batch sending.
13 * @package Swift
14 * @subpackage Mailer
15 * @author Chris Corbyn
17 interface Swift_Mailer_RecipientIterator
20 /**
21 * Returns true only if there are more recipients to send to.
22 * @return boolean
24 public function hasNext();
26 /**
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)
30 * @return array
32 public function nextRecipient();