src/Backend/Modules/Commerce/Domain/Account/AccountAddressDataTransferObject.php
/**
     * Generate an order address data transfer object based on these values.
     */
Generate an order address data transfer object based on these values.
Generate an order address data transfer object based on these values .
public function toCommand(): CreateOrderAddress
    {
        $command = new CreateOrderAddress();
        $command->account = $this->account;
        $command->company_name = $this->company_name;
        $command->first_name = $this->first_name;
        $command->last_name = $this->last_name;
        $command->email_address = $this->email_address;
        $command->phone = $this->phone;
        $command->street = $this->street;
        $command->house_number = $this->house_number;
        $command->house_number_addition = $this->house_number_addition;
        $command->city = $this->city;
        $command->zip_code = $this->zip_code;
        return $command;
    }
public function toCommand ( ) : CreateOrderAddress { $ command = new CreateOrderAddress ( ) ; $ command -> account = $ this -> account ; $ command -> company_name = $ this -> company_name ; $ command -> first_name = $ this -> first_name ; $ command -> last_name = $ this -> last_name ; $ command -> email_address = $ this -> email_address ; $ command -> phone = $ this -> phone ; $ command -> street = $ this -> street ; $ command -> house_number = $ this -> house_number ; $ command -> house_number_addition = $ this -> house_number_addition ; $ command -> city = $ this -> city ; $ command -> zip_code = $ this -> zip_code ; return $ command ; }
Generate an order address data transfer object based on these values.
Generate an order address data transfer object based on these values .