OrderItemRepositoryDeleter

Implements \OrderItemRepositoryDeleterInterface

Class OrderItemRepositoryDeleter

category

System

package

Order

subpackage

Repositories

Methods

OrderItemRepositoryDeleter constructor.

__construct(\CI_DB_query_builder $db) 

Arguments

$db

\CI_DB_query_builder

Query builder.

Removes an item from the order by the given order item ID.

deleteItemById(\IdType $orderItemId) : \OrderItemRepositoryDeleter

Arguments

$orderItemId

\IdType

ID of the order item.

Response

\OrderItemRepositoryDeleter

Same instance for method chaining.

Removes multiple order items by the given order ID.

deleteItemsByOrderId(\IdType $orderId) : \OrderItemRepositoryDeleter

Arguments

$orderId

\IdType

ID of the order.

Response

\OrderItemRepositoryDeleter

Same instance for method chaining.

Properties

Query builder.

db : \CI_DB_query_builder
var

Type(s)

\CI_DB_query_builder