/**
  * @param Money $money
  * @return string
  */
 public function formatMoney(Money $money)
 {
     return $this->formatter->formatMoney($money);
 }
 /** @test */
 function it_should_format_a_money_object_information()
 {
     $this->assertEquals('$5,987.29 MXN', $this->formatter->formatMoney(Money::MXN(598729)));
 }
 /**
  * @param Event $event
  * @return boolean
  */
 public function handle(Event $event)
 {
     $this->logger->info(sprintf('Member with ID "%s" transferred %s to member with ID "%s" on %s', $event->fromMemberId(), $this->formatter->formatMoney($event->amount()), $event->toMemberId(), $event->occurredOn()->format('Y-m-d H:i:s')));
 }