| 1 | <?php |
||
| 17 | class HydrateIterator extends \IteratorIterator |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * Model class for hydrated data |
||
| 21 | * @var string |
||
| 22 | */ |
||
| 23 | protected $modelClass; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Constructor |
||
| 27 | * @param \Traversable $iterator |
||
| 28 | * @param string $modelClass |
||
| 29 | */ |
||
| 30 | public function __construct(\Traversable $iterator, string $modelClass) |
||
| 35 | |||
| 36 | /** |
||
| 37 | * return hydrated object |
||
| 38 | * |
||
| 39 | * @return mixed |
||
| 40 | */ |
||
| 41 | public function current() |
||
| 46 | } |
||
| 47 |