Overview
  • Package
  • Class
  • Tree
  • Todo

Packages

  • AddonValue
    • Interfaces
  • AdminHttpViewControllers
  • ApiV2Controllers
  • Authentication
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Strategies
  • Category
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Providers
    • Repositories
    • Storages
  • Customer
    • Address
    • Country
    • CountryZone
    • Interfaces
    • Storages
    • Validation
    • ValueObjects
  • Email
    • Collections
    • Entities
    • Exceptions
    • Interfaces
    • Repository
    • ValueObjects
  • Extensions
    • Customers
    • Emails
    • Geschaeftskundenversand
    • Helpers
    • Invoices
    • Orders
    • ParcelShopFinder
    • QuickEdit
    • Serializers
    • Templates
  • Geschaeftskundenversand
    • Exceptions
  • Http
    • Collections
    • Exceptions
    • Factories
    • Interfaces
    • ValueObjects
  • HttpViewControllers
  • InfoBox
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
  • Invoice
    • Interfaces
    • ValueObjects
  • Loaders
    • CrossCuttingLoader
    • GXCoreLoader
    • Interfaces
  • Modules
    • Collections
    • Controllers
    • Interfaces
  • Order
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
    • Storages
    • ValueObjects
  • OrderStatus
    • Collections
    • Entities
    • Exceptions
    • Factories
    • Interfaces
    • Repositories
  • Precheck
  • Product
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Providers
    • Repositories
    • Storages
  • ProductModule
    • Collections
    • Deleter
    • Entities
    • Factories
    • Interface
    • Interfaces
    • Reader
    • Repositories
    • Writer
  • QuickEdit
    • Interfaces
    • Repositories
  • Shared
    • ClassFinder
    • Exceptions
    • FileSystem
    • Interfaces
    • Storage
    • Types
  • SharedShoppingCart
    • Interfaces
  • Slider
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
    • Storages
  • Statistics
    • Interfaces
  • UserConfiguration
    • Interfaces
    • Repository
  • VersionInfo
    • Factories
    • Reader
    • ValueObjects

Classes

  • OrderStatusDeleter
  • OrderStatusReader
  • OrderStatusRepository
  • OrderStatusWriter

Interfaces

  • OrderStatusDeleterInterface
  • OrderStatusReaderInterface
  • OrderStatusRepositoryInterface
  • OrderStatusWriterInterface

Class OrderStatusRepository

Class OrderStatusRepository

OrderStatusRepository implements OrderStatusRepositoryInterface
Package: OrderStatus\Repositories
Category: System
Located at Services/Core/OrderStatus/Repositories/OrderStatusRepository.inc.php

Methods summary

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

OrderStatusRepository constructor.

OrderStatusRepository constructor.

Parameters

$factory
Factory instance to create order status entities.
$reader
Reader instance to fetch data from the storage.
$writer
Writer instance to add or update data in the storage.
$deleter
Deleter instance to remove data from the storage.
$languageProvider
Provider instance to get language codes from language ids.
public OrderStatusCollection
# findAll( )

Returns a collection with all order status.

Returns a collection with all order status.

Returns

OrderStatusCollection
Collection of all order status resources.

Implementation of

OrderStatusRepositoryInterface::findAll()
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.

Implementation of

OrderStatusRepositoryInterface::find()
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

OrderStatus
Expected order status entity.

Throws

OrderStatusNotFoundException
If expected order status entity was not found by the given id.

Implementation of

OrderStatusRepositoryInterface::get()
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.

Implementation of

OrderStatusRepositoryInterface::create()
public
# update( OrderStatus $orderStatus )

Updates an order status.

Updates an order status.

Parameters

$orderStatus
Order status entity with updated data.

Returns


$this|OrderStatusRepositoryInterface Same instance for chained method calls.

Implementation of

OrderStatusRepositoryInterface::update()
public
# remove( IntType $orderStatusId )

Removes an order status.

Removes an order status.

Parameters

$orderStatusId
Id of order status entity to be removed.

Returns


$this|OrderStatusRepositoryInterface Same instance for chained method calls.

Implementation of

OrderStatusRepositoryInterface::remove()

Properties summary

protected OrderStatusFactoryInterface $factory
#
protected OrderStatusReaderInterface $reader
#
protected OrderStatusWriterInterface $writer
#
protected OrderStatusDeleterInterface $deleter
#
protected LanguageProvider $languageProvider
#
API documentation generated by ApiGen