/**
  * Sends the reset instructions to client
  *
  * @param ClientInterface $client
  *
  * @return int
  */
 protected function sendResetInstructions(ClientInterface $client)
 {
     $email = $client->getContactDetails()->getEmail();
     $title = $this->getTranslatorHelper()->trans('client.email.heading.reset_password');
     $body = $this->getTemplatingelper()->render('WellCommerceAppBundle:Email:reset_password.html.twig', ['client' => $client]);
     $shop = $client->getShop();
     return $this->getMailerHelper()->sendEmail($email, $title, $body, $shop->getMailerConfiguration());
 }
 /**
  * Copies the client's contact details to cart
  *
  * @param ClientInterface $client
  * @param CartInterface   $cart
  */
 protected function copyContactDetails(ClientInterface $client, CartInterface $cart)
 {
     $cart->setContactDetails($client->getContactDetails());
 }