CustomerWriter

Implements \CustomerWriterInterface

Class CustomerWriter

This class is used for writing customer data to the database

category

System

package

Customer

implements

CustomerWriterInterface

Methods

Constructor of the class CustomerWriter.

__construct(\CI_DB_query_builder $dbQueryBuilder) 

Arguments

$dbQueryBuilder

\CI_DB_query_builder

Query builder.

Writes customer data.

write(\CustomerInterface $customer) 

If customer does not exists it will perform an _insert(), otherwise it will perform an _update().

Arguments

$customer

\CustomerInterface

Customer.

Properties