public function addPage(
        Result $result,
        int $page
    ): string {
        $urlParameters = $this->generateQueryUrlParameters($result);
        $urlParameters['page'] = $page;

        return $this->createUrlByUrlParameters(
            $result,
            $urlParameters
        )['route'];
    }
public function addPage(
        Result $result,
        int $page
    ): string {
        $urlParameters = $this->generateQueryUrlParameters($result);
        $urlParameters['page'] = $page;

        return $this->createUrlByUrlParameters(
            $result,
            $urlParameters
        )['route'];
    }
public function addPage ( Result $ result , int $ page ) : string { $ urlParameters = $ this -> generateQueryUrlParameters ( $ result ) ; $ urlParameters [ 'page' ] = $ page ; return $ this -> createUrlByUrlParameters ( $ result , $ urlParameters ) [ 'route' ] ; }
Set pagination.

@param Result $result
@param int    $page

@return string
Set pagination .