public function getVocabulary(User $user) { $randomUserVocabularyId = $this->userVocabularyRepository->getRandomUserVocabularyId($user->getId(), $this->correctAnswersLimit); $filter = new UserVocabularyFilter(); $filter->setId($randomUserVocabularyId); return $this->userVocabularyRepository->fetch($filter); }
public function getUserVocabulary($id) { $filter = new UserVocabularyFilter(); $filter->setId($id); return $this->userVocabularyRepository->fetch($filter); }