Class OrderTotalRepositoryWriter

Class OrderTotalRepositoryWriter

OrderTotalRepositoryWriter implements OrderTotalRepositoryWriterInterface

Methods summary

public __construct( CI_DB_query_builder $dbQueryBuilder )

OrderTotalRepositoryWriter constructor.

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

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

public update( StoredOrderTotalInterface $orderTotal ) : OrderTotalRepositoryWriter

Updates the passed order total item.

Properties summary

protected $db : CI_DB_query_builder

Query builder.


		
protected $table : string

Table.

'orders_total'
protected $key : string

ID column.

'orders_total_id'