public function getAll($namespace = 'default')
    {
        if ($this->state !== static::STATE_ACTIVE && $this->state !== static::STATE_EXPIRED) {
            if ($this->debug) {
                throw new \RuntimeException('Session is not active.');
            }

            return [];
        }

        return $this->getBag($namespace)->all();
    }
public function getAll($namespace = 'default')
    {
        if ($this->state !== static::STATE_ACTIVE && $this->state !== static::STATE_EXPIRED) {
            if ($this->debug) {
                throw new \RuntimeException('Session is not active.');
            }

            return [];
        }

        return $this->getBag($namespace)->all();
    }
public function getAll ( $ namespace = 'default' ) { if ( $ this -> state !== static :: STATE_ACTIVE && $ this -> state !== static :: STATE_EXPIRED ) { if ( $ this -> debug ) { throw new \ RuntimeException ( 'Session is not active.' ) ; } return [ ] ; } return $ this -> getBag ( $ namespace ) -> all ( ) ; }
Get all session data.

@param   string $namespace Session namespace, default is `default`.

@return  array
@throws \RuntimeException

@since   2.0
Get all session data .