/** * Returns an array of choices for to be used in a form select type listing wallets. * @return array */ private function generateWalletHtmlSelectChoices() { $walletChoices = array(); $wallets = $this->walletRepository->findAll(); foreach ($wallets as $wallet) { $walletChoices[$wallet->getId()->getValue()] = $wallet->getName(); } return $walletChoices; }
/** * @return Wallet[] */ public function listWallets() { $wallets = $this->walletRepository->findAll(); return $wallets; }