phpDocumentor

OrderStatusService
in package
implements OrderStatusServiceInterface

Class OrderStatusService

Tags
category

System

Interfaces, Classes and Traits

OrderStatusServiceInterface
Interface OrderStatusServiceInterface

Table of Contents

$repository  : OrderStatusRepositoryInterface
__construct()  : mixed
Class Constructor
create()  : int
Creates a new order status.
find()  : OrderStatus|null
Returns an order status entity by the given order status id. If no data was found, null is returned.
findAll()  : OrderStatusCollection
Returns a collection with all order status.
get()  : OrderStatus
Returns an order status entity by the given order status id. If no data was found, an exception is thrown.
remove()  : $this|OrderStatusServiceInterface
Removes an order status.
update()  : $this|OrderStatusServiceInterface
Updates an order status.

Properties

Methods

create()

Creates a new order status.

public create(OrderStatus $orderStatus) : int
Parameters
$orderStatus : OrderStatus

Order status entity with new data.

Return values
int

Id of new order status entity.

find()

Returns an order status entity by the given order status id. If no data was found, null is returned.

public find(IntType $orderStatusId) : OrderStatus|null
Parameters
$orderStatusId : IntType

Id of expected OrderStatus entity.

Return values
OrderStatus|null

Whether the found order status entity or null.

Search results