WidgetCategory
in package
Class representing a widget category.
Table of Contents
- CUSTOMERS = "customers"
- Customers category name.
- ORDERS = "orders"
- Orders category name.
- SYSTEM = "system"
- System category name.
- VALID_VALUES = [self::CUSTOMERS, self::ORDERS, self::SYSTEM]
- Valid categories.
- $value : string
- Value.
- create() : WidgetCategory
- Create instance.
- value() : string
- Return value.
- __construct() : mixed
- Constructor.
Constants
CUSTOMERS
Customers category name.
public
mixed
CUSTOMERS
= "customers"
ORDERS
Orders category name.
public
mixed
ORDERS
= "orders"
SYSTEM
System category name.
public
mixed
SYSTEM
= "system"
VALID_VALUES
Valid categories.
private
mixed
VALID_VALUES
= [self::CUSTOMERS, self::ORDERS, self::SYSTEM]
Properties
$value
Value.
private
string
$value
Methods
create()
Create instance.
public
static create(string $category) : WidgetCategory
Parameters
- $category : string
-
Value.
Return values
WidgetCategory —Instance.
value()
Return value.
public
value() : string
Return values
string —Value.
__construct()
Constructor.
private
__construct(string $value) : mixed
Parameters
- $value : string
-
Value.