OrderStatusPaidReader
in package
Class OrderStatusPaidReader
Table of Contents
- AFTERBUY_CONFIGURATION_PAID = 'order_status_paid'
- AFTERBUY_CONFIGURATION_STORAGE_NAMESPACE = 'modules/gambio/afterbuy'
- AFTERBUY_CONFIGURATION_UNPAID = 'order_status_not_paid'
- CONFIGURATION_SEPARATOR = ','
- $connection : Connection
- $paidStatusCache : array<string|int, mixed>
- $storage : ConfigurationStorageRepository
- $unknownStatusCache : array<string|int, mixed>
- $unpaidStatusCache : array<string|int, mixed>
- __construct() : mixed
- OrderStatusPaidReader constructor.
- getPaidOrderStatus() : array<string|int, mixed>
- Returns an array of order status representing that the order is paid.
- getUnknownOrderStatus() : array<string|int, mixed>
- Returns an array of order status representing that the paid status is unknown.
- getUnpaidOrderStatus() : array<string|int, mixed>
- Returns an array of order status representing that the order is unpaid.
- getOrderStatusTableData() : array<string|int, mixed>
- Fetches all order status from the related table, grouped by id (to filter language specific entries).
- throwOrderPaidStatusNotFoundException() : void
- Throws an `OrderStatusPaidNotFound` exception if the configuration values are not available. This can be the case when the module was installed for the first time, but no configurations where entered.
Constants
AFTERBUY_CONFIGURATION_PAID
private
mixed
AFTERBUY_CONFIGURATION_PAID
= 'order_status_paid'
AFTERBUY_CONFIGURATION_STORAGE_NAMESPACE
private
mixed
AFTERBUY_CONFIGURATION_STORAGE_NAMESPACE
= 'modules/gambio/afterbuy'
AFTERBUY_CONFIGURATION_UNPAID
private
mixed
AFTERBUY_CONFIGURATION_UNPAID
= 'order_status_not_paid'
CONFIGURATION_SEPARATOR
private
mixed
CONFIGURATION_SEPARATOR
= ','
Properties
$connection
private
Connection
$connection
$paidStatusCache
private
array<string|int, mixed>
$paidStatusCache
= []
$storage
private
ConfigurationStorageRepository
$storage
$unknownStatusCache
private
array<string|int, mixed>
$unknownStatusCache
= []
$unpaidStatusCache
private
array<string|int, mixed>
$unpaidStatusCache
= []
Methods
__construct()
OrderStatusPaidReader constructor.
public
__construct(ConfigurationStorageRepositoryBuilder $builder, Connection $connection) : mixed
Parameters
- $builder : ConfigurationStorageRepositoryBuilder
- $connection : Connection
Return values
mixed —getPaidOrderStatus()
Returns an array of order status representing that the order is paid.
public
getPaidOrderStatus() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —getUnknownOrderStatus()
Returns an array of order status representing that the paid status is unknown.
public
getUnknownOrderStatus() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —getUnpaidOrderStatus()
Returns an array of order status representing that the order is unpaid.
public
getUnpaidOrderStatus() : array<string|int, mixed>
Return values
array<string|int, mixed> —getOrderStatusTableData()
Fetches all order status from the related table, grouped by id (to filter language specific entries).
private
getOrderStatusTableData() : array<string|int, mixed>
The return array only contains the order status id as value.
Tags
Return values
array<string|int, mixed> —throwOrderPaidStatusNotFoundException()
Throws an `OrderStatusPaidNotFound` exception if the configuration values are not available. This can be the case when the module was installed for the first time, but no configurations where entered.
private
throwOrderPaidStatusNotFoundException(string $config) : void
Parameters
- $config : string