getContactDetails() public method

public getContactDetails ( ) : WellCommerce\Bundle\ClientBundle\Entity\ClientContactDetailsInterface
return WellCommerce\Bundle\ClientBundle\Entity\ClientContactDetailsInterface
コード例 #1
0
 /**
  * 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.title.reset_password');
     $body = $this->getTemplatingelper()->render('WellCommerceClientBundle:Email:reset_password.html.twig', ['client' => $client]);
     $shop = $client->getShop();
     return $this->getMailerHelper()->sendEmail($email, $title, $body, $shop->getMailerConfiguration());
 }
コード例 #2
0
 /**
  * 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());
 }
コード例 #3
0
 /**
  * Sends the reset instructions to client
  *
  * @param ClientInterface $client
  *
  * @return int
  */
 protected function sendResetInstructions(ClientInterface $client) : int
 {
     return $this->getMailerHelper()->sendEmail(['recipient' => $client->getContactDetails()->getEmail(), 'subject' => $this->getTranslatorHelper()->trans('client.email.heading.reset_password'), 'template' => 'WellCommerceAppBundle:Email:reset_password.html.twig', 'parameters' => ['client' => $client], 'configuration' => $client->getShop()]);
 }