public function createOrderedMap(\Traversable $iterator = null) { return new OrderedMap($iterator === null ? null : $this->toIterator($iterator)); }