WellCommerce\Bundle\ClientBundle\Entity\ClientInterface::getContactDetails PHP Method

getContactDetails() public method

public getContactDetails ( ) : WellCommerce\Bundle\ClientBundle\Entity\ClientContactDetailsInterface
return WellCommerce\Bundle\ClientBundle\Entity\ClientContactDetailsInterface
    public function getContactDetails() : ClientContactDetailsInterface;

Usage Example

 /**
  * 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());
 }
All Usage Examples Of WellCommerce\Bundle\ClientBundle\Entity\ClientInterface::getContactDetails