for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Collections\Iterator;
use Collections\Enumerable;
class LazyZipIterable implements Enumerable
{
use LazyIterableTrait;
/**
* @var Enumerable
*/
private $iterable1;
private $iterable2;
public function __construct($iterable1, $iterable2)
$this->iterable1 = $iterable1;
$this->iterable2 = $iterable2;
}
public function getIterator()
return new LazyZipIterator($this->iterable1->getIterator(), $this->iterable2->getIterator());