yii\web\SessionIterator::current PHP Method

current() public method

This method is required by the interface [[\Iterator]].
public current ( ) : mixed
return mixed the current array element
    public function current()
    {
        return isset($_SESSION[$this->_key]) ? $_SESSION[$this->_key] : null;
    }