TYPO3 API  SVNRelease
RecipientIterator.php
Go to the documentation of this file.
00001 <?php
00002 
00003 /*
00004  * This file is part of SwiftMailer.
00005  * (c) 2004-2009 Chris Corbyn
00006  *
00007  * For the full copyright and license information, please view the LICENSE
00008  * file that was distributed with this source code.
00009  */
00010 
00011 /**
00012  * Provides an abstract way of specifying recipients for batch sending.
00013  * @package Swift
00014  * @subpackage Mailer
00015  * @author Chris Corbyn
00016  */
00017 interface Swift_Mailer_RecipientIterator
00018 {
00019 
00020   /**
00021    * Returns true only if there are more recipients to send to.
00022    * @return boolean
00023    */
00024   public function hasNext();
00025 
00026   /**
00027    * Returns an array where the keys are the addresses of recipients and the
00028    * values are the names.
00029    * e.g. ('foo@bar' => 'Foo') or ('foo@bar' => NULL)
00030    * @return array
00031    */
00032   public function nextRecipient();
00033 
00034 }