/**
  * @param int $offset
  * @param int $limit
  * @return array
  */
 public function getParameters($offset = null, $limit = null)
 {
     $parameters = parent::getParameters();
     $parameters[$this->offsetParameterName] = null === $offset ? $this->getOffset() : $offset;
     $parameters[$this->limitParameterName] = null === $limit ? $this->getLimit() : $limit;
     return $parameters;
 }
    /**
     * @param  null  $page
     * @param  null  $limit
     * @return array
     */
    public function getParameters($page = null, $limit = null)
    {
        $parameters = parent::getParameters();

        $parameters[$this->pageParameterName]  = null === $page ? $this->getPage() : $page;
        $parameters[$this->limitParameterName] = null === $limit ? $this->getLimit() : $limit;

        return $parameters;
    }