src/Controller/Plugin/PaginationParams.php
public function setParams($namespace, $params)
    {
        $session = new Container($namespace);
        $session->params = $params;
        unset($session->list);
        return $this;
    }
public function setParams($namespace, $params)
    {
        $session = new Container($namespace);
        $session->params = $params;
        unset($session->list);
        return $this;
    }
Sets pagination params and stores them in the session.

@param String $namespace
@param array|Parameters $params
@return \Core\Controller\Plugin\PaginationParams fluent interface