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

setShippingAddress() public method

public setShippingAddress ( WellCommerce\Bundle\ClientBundle\Entity\ClientShippingAddressInterface $shippingAddress )
$shippingAddress WellCommerce\Bundle\ClientBundle\Entity\ClientShippingAddressInterface
    public function setShippingAddress(ClientShippingAddressInterface $shippingAddress)
    {
        $this->shippingAddress = $shippingAddress;
    }

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;
 }