DeleteHistoryScope
in package
Class DeleteHistoryScope
Table of Contents
- SCOPE_CATEGORIES = 'delete_scope_categories'
- SCOPE_CUSTOMERS = 'delete_scope_customers'
- SCOPE_ORDERS = 'delete_scope_orders'
- Scope constants
- SCOPE_PRODUCTS = 'delete_scope_products'
- $allowedScopes : array<string|int, mixed>
- $scope : string
- __construct() : mixed
- DeleteHistoryScope constructor.
- categories() : DeleteHistoryScope
- Creates a new instance of a delete history categories scope.
- customers() : DeleteHistoryScope
- Creates a new instance of a delete history customers scope.
- orders() : DeleteHistoryScope
- Creates a new instance of a delete history orders scope.
- products() : DeleteHistoryScope
- Creates a new instance of a delete history products scope.
- scope() : string
- Returns the current scope.
Constants
SCOPE_CATEGORIES
public
mixed
SCOPE_CATEGORIES
= 'delete_scope_categories'
SCOPE_CUSTOMERS
public
mixed
SCOPE_CUSTOMERS
= 'delete_scope_customers'
SCOPE_ORDERS
Scope constants
public
mixed
SCOPE_ORDERS
= 'delete_scope_orders'
SCOPE_PRODUCTS
public
mixed
SCOPE_PRODUCTS
= 'delete_scope_products'
Properties
$allowedScopes
private
static array<string|int, mixed>
$allowedScopes
= [self::SCOPE_ORDERS, self::SCOPE_PRODUCTS, self::SCOPE_CATEGORIES, self::SCOPE_CUSTOMERS]
$scope
private
string
$scope
Methods
__construct()
DeleteHistoryScope constructor.
public
__construct(string $scope) : mixed
Parameters
- $scope : string
-
Delete history scope.
Return values
mixed —categories()
Creates a new instance of a delete history categories scope.
public
static categories() : DeleteHistoryScope
Return values
DeleteHistoryScope —Categories scope.
customers()
Creates a new instance of a delete history customers scope.
public
static customers() : DeleteHistoryScope
Return values
DeleteHistoryScope —Customers scope.
orders()
Creates a new instance of a delete history orders scope.
public
static orders() : DeleteHistoryScope
Return values
DeleteHistoryScope —Orders scope.
products()
Creates a new instance of a delete history products scope.
public
static products() : DeleteHistoryScope
Return values
DeleteHistoryScope —Products scope.
scope()
Returns the current scope.
public
scope() : string