private function evaluateAttributes(
        Request $request,
        CreatePaginator $annotation,
        DoctrinePaginator $paginator,
        int $limitPerPage,
        int $page
    ) {
        if ($annotation->getAttributes()) {
            $total = $paginator->count();
            $paginatorAttributes = new PaginatorAttributes(
                (int) ceil($total / $limitPerPage),
                $total,
                $page,
                $limitPerPage
            );

            $request->attributes->set(
                trim($annotation->getAttributes()),
                $paginatorAttributes
            );
        }
    }