code: public function setParams($namespace, $params)
      {
          $session = new Container($namespace);
          $session->params = $params;
          unset($session->list);
          return $this;
      }
docs: Sets pagination params and stores them in the session.
  
  @param String $namespace
  @param array|Parameters $params
  @return \Core\Controller\Plugin\PaginationParams fluent interface