/**
  * @param MemberInformation $fromMember
  * @param MemberInformation $toMember
  * @param Money $amount
  * @param DateTime $occurredOn
  */
 public function sendDepositReceivedEmail(MemberInformation $fromMember, MemberInformation $toMember, Money $amount, DateTime $occurredOn)
 {
     $message = new Message();
     $message->setFrom('*****@*****.**')->setTo($toMember->email()->address())->setSubject('You have received a deposit')->setBody($this->template->render('email/deposit.html', ['fromMember' => $fromMember, 'toMember' => $toMember, 'amount' => $amount, 'occurredOn' => $occurredOn]));
     $this->mailTransport->send($message);
 }
 /**
  * @param MemberInformation $member
  * @return string
  */
 public function formatMember(MemberInformation $member)
 {
     return "{$member->name()} {$this->formatMoney($member->accountBalance())}";
 }