public final function getPager(int $totalRecords = null, string $startKey = null,
        string $stopKey = null): Pager
    {
        if ($totalRecords !== null) {
            $this->pager->run($totalRecords, $startKey, $stopKey);
        }

        return $this->pager;
    }