public function current()
    {
        $current = current($this->storage);
        if ($this->useMapEntries) {
            return new MapEntry($current[0], $current[1]);
        }
        return $current[1];
    }
public function current()
    {
        $current = current($this->storage);
        if ($this->useMapEntries) {
            return new MapEntry($current[0], $current[1]);
        }
        return $current[1];
    }
Returns current entry value

@return mixed|MapEntry MapEntry will be used only for php >= 5.5