TYPO3
7.6
Users
bogdan
Projects
Kapeli
Resources
Dash
Docsets
TYPO3
src
vendor
swiftmailer
swiftmailer
lib
classes
Swift
Mailer
ArrayRecipientIterator.php
Go to the documentation of this file.
1
<?php
2
3
/*
4
* This file is part of SwiftMailer.
5
* (c) 2004-2009 Chris Corbyn
6
*
7
* For the full copyright and license information, please view the LICENSE
8
* file that was distributed with this source code.
9
*/
10
16
class
Swift_Mailer_ArrayRecipientIterator
implements
Swift_Mailer_RecipientIterator
17
{
23
private
$_recipients
= array();
24
30
public
function
__construct
(array $recipients)
31
{
32
$this->_recipients = $recipients;
33
}
34
40
public
function
hasNext
()
41
{
42
return
!empty($this->_recipients);
43
}
44
51
public
function
nextRecipient
()
52
{
53
return
array_splice($this->_recipients, 0, 1);
54
}
55
}
Generated on Wed Nov 11 2015 01:51:50 for TYPO3 by
1.8.3