Interface OrderStatusServiceInterface
Interface OrderStatusServiceInterface
Methods summary
public
findAll( void )
: OrderStatusCollection
Returns a collection with all order status.
Returns a collection with all order status.
Returns
public
find( IntType $orderStatusId )
: OrderStatus|null
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
get( IntType $orderStatusId )
: OrderStatus
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
create( OrderStatus $orderStatus )
: integer
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|OrderStatusServiceInterface 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|OrderStatusServiceInterface Same instance for chained method calls.