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

  • OrderStatusService

Class OrderStatusService

Class OrderStatusService

OrderStatusService implements OrderStatusServiceInterface
Package: OrderStatus
Category: System
Located at Services/Core/OrderStatus/OrderStatusService.inc.php

Methods summary

public
# __construct( OrderStatusRepositoryInterface $repository )

Class Constructor

Class Constructor

Parameters

$repository
orderStatusRepository
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

OrderStatusServiceInterface::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

OrderStatusServiceInterface::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

OrderStatusServiceInterface::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

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

Updates an order status.

Updates an order status.

Parameters

$orderStatus
Order status entity with updated data.

Returns


$this|OrderStatusServiceInterface Same instance for chained method calls.

Implementation of

OrderStatusServiceInterface::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|OrderStatusServiceInterface Same instance for chained method calls.

Implementation of

OrderStatusServiceInterface::remove()

Properties summary

protected OrderStatusRepositoryInterface $repository
#
API documentation generated by ApiGen