phpDocumentor

OrderStatusRepository implements OrderStatusRepositoryInterface

Class OrderStatusRepository

Tags
category

System

subpackage

Repositories

Interfaces, Classes and Traits

OrderStatusRepositoryInterface
Interface OrderStatusRepositoryInterface

Table of Contents

$deleter  : OrderStatusDeleterInterface
$factory  : OrderStatusFactoryInterface
$languageProvider  : LanguageProvider
$reader  : OrderStatusReaderInterface
$writer  : OrderStatusWriterInterface
__construct()  : mixed
OrderStatusRepository 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|OrderStatusRepositoryInterface
Removes an order status.
update()  : $this|OrderStatusRepositoryInterface
Updates an order status.

Properties

Methods

__construct()

OrderStatusRepository constructor.

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

Factory instance to create order status entities.

$reader : OrderStatusReaderInterface

Reader instance to fetch data from the storage.

$writer : OrderStatusWriterInterface

Writer instance to add or update data in the storage.

$deleter : OrderStatusDeleterInterface

Deleter instance to remove data from the storage.

$languageProvider : LanguageProvider

Provider instance to get language codes from language ids.

Return values
mixed

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