getChapterId()); $context = $this->chapterRepository->getChapterContext($chapterId); return new ChapterContextResponse( id: $query->getChapterId(), mangaId: $context->getMangaId(), title: $context->getChapterTitle(), number: $context->getNumber(), totalPages: $context->getTotalPages(), previousChapterId: $context->getPreviousChapterId()?->getValue(), nextChapterId: $context->getNextChapterId()?->getValue(), ); } }