Пример #1
0
 public function __construct(ICollection $collection)
 {
     parent::__construct(new Traversable\SourceInfo($collection), new Traversable\Provider($collection));
     $this->scheme = $collection->getIteratorScheme();
     $this->collection = $collection;
 }
Пример #2
0
 public function __construct(ICollection $collection, IJoinIterator $joinIterator, callable $collectionFactory)
 {
     parent::__construct($collection->getIteratorScheme(), $joinIterator, $collectionFactory);
     $this->collection = $collection;
 }