public function __construct(ICollection $collection) { parent::__construct(new Traversable\SourceInfo($collection), new Traversable\Provider($collection)); $this->scheme = $collection->getIteratorScheme(); $this->collection = $collection; }
public function __construct(ICollection $collection, IJoinIterator $joinIterator, callable $collectionFactory) { parent::__construct($collection->getIteratorScheme(), $joinIterator, $collectionFactory); $this->collection = $collection; }