public function __construct(\Traversable $iterator = null) { parent::__construct(); if ($iterator !== null) { $this->setAll($iterator); } }