forked from zendframework/zendframework
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[zendframework#3446] Allow generic traversable configuration to Captc…
…ha element
- Loading branch information
1 parent
c0e2d53
commit d32a381
Showing
3 changed files
with
51 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
/** | ||
* Zend Framework (http://framework.zend.com/) | ||
* | ||
* @link http://github.com/zendframework/zf2 for the canonical source repository | ||
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com) | ||
* @license http://framework.zend.com/license/new-bsd New BSD License | ||
* @package Zend_Form | ||
*/ | ||
|
||
namespace ZendTest\Form\TestAsset; | ||
|
||
use Traversable; | ||
use IteratorAggregate as IteratorAggregateInterface; | ||
|
||
class IteratorAggregate implements IteratorAggregateInterface | ||
{ | ||
protected $iterator; | ||
|
||
public function __construct(Traversable $iterator) | ||
{ | ||
$this->iterator = $iterator; | ||
} | ||
|
||
public function getIterator() | ||
{ | ||
return $this->iterator; | ||
} | ||
} |