Class CustomerAddressWriter

Class CustomerAddressWriter

This class is used for writing customer address data into the database

CustomerAddressWriter implements CustomerAddressWriterInterface
Package: Customer\Address
Category: System
Implements: CustomerAddressWriterInterface
Located at Services/Core/Address/CustomerAddressWriter.inc.php

Methods summary

public __construct( CI_DB_query_builder $dbQueryBuilder )

Constructor of the class CustomerAddressWriter

public write( CustomerAddressInterface $address )

Calls the protected insert method to store the customer address into the database

protected _insert( CustomerAddressInterface $address ) : CustomerAddressInterface

Inserts the customer address into the database

protected _update( CustomerAddressInterface $address ) : CustomerAddressInterface

Updates an existing customer address in the database

Properties summary

protected $db : CI_DB_query_builder