public function __construct(\Traversable $iterator = null) { parent::__construct(); if ($iterator !== null) { $this->setAll($iterator); } }
public function __construct(IGenerator $values = null) { parent::__construct(); if ($values !== null) { foreach ($values as &$value) { $this->addRef($value); } } }
public function __construct(\Traversable $iterator) { parent::__construct(); self::__constructIterator($iterator); }
public function __construct(array $array) { parent::__construct(); self::__constructIterator($array); }
public function __construct(\ArrayIterator $arrayIterator) { parent::__construct(); self::__constructIterator($arrayIterator); }
public function __construct(IGenerator $iterator) { parent::__construct(); $this->iterator = $iterator; }