CustomerAddressWriter
in package
implements
CustomerAddressWriterInterface
Class CustomerAddressWriter
This class is used for writing customer address data into the database
Tags
Interfaces, Classes and Traits
- CustomerAddressWriterInterface
- Interface CustomerAddressWriterInterface
Table of Contents
- $db : CI_DB_query_builder
- __construct() : mixed
- Constructor of the class CustomerAddressWriter
- write() : mixed
- Calls the protected insert method to store the customer address into the database
- _insert() : CustomerAddressInterface
- Inserts the customer address into the database
- _update() : CustomerAddressInterface
- Updates an existing customer address in the database
Properties
$db
protected
CI_DB_query_builder
$db
Methods
__construct()
Constructor of the class CustomerAddressWriter
public
__construct(CI_DB_query_builder $dbQueryBuilder) : mixed
Parameters
- $dbQueryBuilder : CI_DB_query_builder
Return values
mixed —write()
Calls the protected insert method to store the customer address into the database
public
write(CustomerAddressInterface $address) : mixed
Parameters
- $address : CustomerAddressInterface
Return values
mixed —_insert()
Inserts the customer address into the database
protected
_insert(CustomerAddressInterface $address) : CustomerAddressInterface
Parameters
- $address : CustomerAddressInterface
Return values
CustomerAddressInterface —_update()
Updates an existing customer address in the database
protected
_update(CustomerAddressInterface $address) : CustomerAddressInterface
Parameters
- $address : CustomerAddressInterface