yii\web\SessionIterator::current PHP Метод

current() публичный Метод

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