Dumplie\Customer\Application\Command\ChangeBillingAddressHandler::handle PHP Method

handle() public method

public handle ( ChangeBillingAddress $command )
$command ChangeBillingAddress
    public function handle(ChangeBillingAddress $command)
    {
        $billing = new Address($command->name(), $command->street(), $command->postCode(), $command->city(), $command->countryIso2Code());
        $checkout = $this->checkouts->getForCart(new CartId($command->cartId()));
        $checkout->changeBillingAddress($billing);
    }
ChangeBillingAddressHandler