OrderStatusWriter

Implements \OrderStatusWriterInterface

Class OrderStatusWriter

category

System

package

OrderStatus

subpackage

Repositories

Methods

OrderStatusWriter constructor.

__construct(\CI_DB_query_builder $queryBuilder, \LanguageProvider $languageProvider) 

Arguments

$queryBuilder

\CI_DB_query_builder

Active record instance for data access.

$languageProvider

\LanguageProvider

Instance to access language code and ID's.

Creates a new order status.

createOrderStatus(\OrderStatus $orderStatus) : integer
Throws
\OrderStatusIdExistsException

If ::getId method of $orderStatus returns not null.

Arguments

$orderStatus

\OrderStatus

Order status to be created.

Response

integer

Id of new order status entity.

Updates the given order status entity.

updateOrderStatus(\OrderStatus $orderStatus) : $this|\OrderStatusWriterInterface
Throws
\OrderStatusIdNotExistsException

If ::getId method of $orderStatus returns null.

Arguments

$orderStatus

\OrderStatus

Order status to be update.

Response

$this|\OrderStatusWriterInterface

Same instance for chained method calls.

Properties

queryBuilder

queryBuilder : \CI_DB_query_builder
var

Type(s)

\CI_DB_query_builder

table

table : string
var

Type(s)

string

id

id : string
var

Type(s)

string

languageProvider

languageProvider : \LanguageProvider
var

Type(s)

\LanguageProvider