OrderTotalRepositoryWriter

Implements \OrderTotalRepositoryWriterInterface

Class OrderTotalRepositoryWriter

category

System

package

Order

subpackage

Repositories

Methods

OrderTotalRepositoryWriter constructor.

__construct(\CI_DB_query_builder $dbQueryBuilder) 

Arguments

$dbQueryBuilder

\CI_DB_query_builder

Query builder.

Inserts an order total item to an order by the given order ID.

insertIntoOrder(\IdType $orderId, \OrderTotalInterface $orderTotal) : integer

Arguments

$orderId

\IdType

ID of the order.

$orderTotal

\OrderTotalInterface

Order total item to insert.

Response

integer

ID of stored order total item.

Updates the passed order total item.

update(\StoredOrderTotalInterface $orderTotal) : \OrderTotalRepositoryWriter

Arguments

$orderTotal

\StoredOrderTotalInterface

Order total item to update.

Response

\OrderTotalRepositoryWriter

Same instance for method chaining.

Properties

Query builder.

db : \CI_DB_query_builder
var

Type(s)

\CI_DB_query_builder

Table.

table : string
var

Type(s)

string

ID column.

key : string
var

Type(s)

string