Interface OrderStatusRepositoryInterface
Interface OrderStatusRepositoryInterface
Methods summary
public
OrderStatusCollection
|
#
findAll( )
Returns a collection with all order status.
Returns a collection with all order status.
Returns
|
public
OrderStatus|null
|
#
find( IntType $orderStatusId )
Returns an order status entity by the given order status id. If no data was found, null is returned.
Returns an order status entity by the given order status id. If no data was found, null is returned.
Parameters
- $orderStatusId
- Id of expected OrderStatus entity.
Returns
OrderStatus|null Whether the found order status entity or null.
|
public
OrderStatus
|
#
get( IntType $orderStatusId )
Returns an order status entity by the given order status id. If no data was found, an exception is thrown.
Returns an order status entity by the given order status id. If no data was found, an exception is thrown.
Parameters
- $orderStatusId
- Id of expected OrderStatus entity.
Returns
Throws
|
public
integer
|
#
create( OrderStatus $orderStatus )
Creates a new order status.
Creates a new order status.
Parameters
- $orderStatus
- Order status entity with new data.
Returns
integer Id of new order status entity.
|
public
|
#
update( OrderStatus $orderStatus )
Updates an order status.
Parameters
- $orderStatus
- Order status entity with updated data.
Returns
$this|OrderStatusRepositoryInterface Same instance for chained method calls.
|
public
|
#
remove( IntType $orderStatusId )
Removes an order status.
Parameters
- $orderStatusId
- Id of order status entity to be removed.
Returns
$this|OrderStatusRepositoryInterface Same instance for chained method calls.
|