ns = $ns; } /** * Return the current element as an IndexInfo instance. * * @see IndexInfoIterator::current() * @see http://php.net/iterator.current * @return IndexInfo */ public function current() { $info = parent::current(); if (! array_key_exists('ns', $info) && $this->ns !== null) { $info['ns'] = $this->ns; } return new IndexInfo($info); } }