OrderRepositoryInterface

Extends

Interface OrderRepositoryInterface

category

System

package

Order

subpackage

Interfaces

Methods

Creates a new order with no values in the database and returns it containing just the ID.

createNew() : \OrderInterface

Response

\OrderInterface

Crated order.

Deletes an order by the ID.

deleteById(\IdType $orderId) : \OrderRepositoryInterface

Arguments

$orderId

\IdType

Order ID.

Response

\OrderRepositoryInterface

Same instance for method chaining.

Returns an order by given ID.

getById(\IdType $orderId) : \OrderInterface

Arguments

$orderId

\IdType

Order ID.

Response

\OrderInterface

Fetched order.

Saves an Order to the database.

store(\OrderInterface $order) 

Arguments

$order

\OrderInterface

Stored order.