phpDocumentor

OrderTotalRepositoryReader
in package
implements OrderTotalRepositoryReaderInterface

Class OrderTotalRepositoryReader

Tags
category

System

subpackage

Repositories

Interfaces, Classes and Traits

OrderTotalRepositoryReaderInterface
Interface OrderTotalRepositoryReaderInterface

Table of Contents

$db  : CI_DB_query_builder
Query builder.
$key  : string
ID column.
$orderTotalFactory  : OrderTotalFactory
Order total factory.
$table  : string
Table.
__construct()  : mixed
OrderTotalRepositoryReader constructor.
getTotalById()  : StoredOrderTotal
Returns an StoredOrderTotal object by the given ID.
getTotalsByOrderId()  : StoredOrderTotalCollection
Returns a StoredOrderTotalCollection of StoredOrderTotal objects by the given order ID.
_createStoredOrderTotalItem()  : StoredOrderTotal
Creates a StoredOrderTotal instance based on the given result set array.

Properties

Methods

_createStoredOrderTotalItem()

Creates a StoredOrderTotal instance based on the given result set array.

protected _createStoredOrderTotalItem(array<string|int, mixed> $storedOrderTotalData) : StoredOrderTotal
Parameters
$storedOrderTotalData : array<string|int, mixed>

Result set from database.

Return values
StoredOrderTotal

Created order total.

Search results