code: public function getAll(): array
      {
          $res = [];
          foreach ($this->getKeys() as $key) {
              $res[$key] = $this->get($key);
          }
          return $res;
      }
docs: It returns all session variables as associative array.
  @return mixed[]