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

getBillingAddress() public method

public getBillingAddress ( ) : WellCommerce\Bundle\ClientBundle\Entity\ClientBillingAddressInterface
return WellCommerce\Bundle\ClientBundle\Entity\ClientBillingAddressInterface
    public function getBillingAddress() : ClientBillingAddressInterface;

Usage Example

 /**
  * Copies the client's billing address to cart
  *
  * @param ClientInterface $client
  * @param CartInterface   $cart
  */
 protected function copyBillingAddress(ClientInterface $client, CartInterface $cart)
 {
     $cart->setBillingAddress($client->getBillingAddress());
 }