src/SessionNamespace.php
public function getAll(): array
    {
        $namespace = $this->getNamespace();
        $length = mb_strlen($namespace);

        $values = [];

        $data = $this->session->getAll();
        foreach ($data as $key => $val) {
            if (mb_substr($key, 0, $length) === $namespace) {
                $key = mb_substr($key, $length);
                $values[$key] = $val;
            }
        }

        return $values;
    }
public function getAll(): array
    {
        $namespace = $this->getNamespace();
        $length = mb_strlen($namespace);

        $values = [];

        $data = $this->session->getAll();
        foreach ($data as $key => $val) {
            if (mb_substr($key, 0, $length) === $namespace) {
                $key = mb_substr($key, $length);
                $values[$key] = $val;
            }
        }

        return $values;
    }
public function getAll ( ) : array { $ namespace = $ this -> getNamespace ( ) ; $ length = mb_strlen ( $ namespace ) ; $ values = [ ] ; $ data = $ this -> session -> getAll ( ) ; foreach ( $ data as $ key => $ val ) { if ( mb_substr ( $ key , 0 , $ length ) === $ namespace ) { $ key = mb_substr ( $ key , $ length ) ; $ values [ $ key ] = $ val ; } } return $ values ; }
Get all the current session data.

@return array
Get all the current session data .