WellCommerce\Bundle\ClientBundle\Entity\Client::setBillingAddress PHP Method

setBillingAddress() public method

public setBillingAddress ( WellCommerce\Bundle\ClientBundle\Entity\ClientBillingAddressInterface $billingAddress )
$billingAddress WellCommerce\Bundle\ClientBundle\Entity\ClientBillingAddressInterface
    public function setBillingAddress(ClientBillingAddressInterface $billingAddress)
    {
        $this->billingAddress = $billingAddress;
    }

Usage Example

コード例 #1
0
 public function create() : ClientInterface
 {
     $client = new Client();
     $client->setContactDetails($this->contactDetailsFactory->create());
     $client->setClientDetails($this->detailsFactory->create());
     $client->setBillingAddress($this->billingAddressFactory->create());
     $client->setShippingAddress($this->shippingAddressFactory->create());
     $client->setShop($this->shopStorage->getCurrentShop());
     $client->setClientGroup($this->shopStorage->getCurrentShop()->getClientGroup());
     return $client;
 }