Class OrderStatusRepository

Class OrderStatusRepository

OrderStatusRepository implements OrderStatusRepositoryInterface

Methods summary

public __construct( OrderStatusFactoryInterface $factory, OrderStatusReaderInterface $reader, OrderStatusWriterInterface $writer, OrderStatusDeleterInterface $deleter, LanguageProvider $languageProvider )

OrderStatusRepository constructor.

public findAll( void ) : OrderStatusCollection

Returns a collection with all order status.

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.

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.

public create( OrderStatus $orderStatus ) : integer

Creates a new order status.

public update( OrderStatus $orderStatus ) :

Updates an order status.

public remove( IntType $orderStatusId ) :

Removes an order status.

Properties summary