AbstractEnum
Table of Contents
- $constCacheArray : mixed
- isValid() : bool
- Returns true the value is valid for this enum
- validate() : mixed
- Validates that the value passed is a valid value
- values() : array<string|int, mixed>
- Returns all values for this enum
- getConstants() : mixed
Properties
$constCacheArray
private
static mixed
$constCacheArray
= null
Methods
isValid()
Returns true the value is valid for this enum
public
static isValid(string $value) : bool
Parameters
- $value : string
Return values
bool —true if value is valid
validate()
Validates that the value passed is a valid value
public
static validate(string $value) : mixed
Parameters
- $value : string
Tags
Return values
mixed —values()
Returns all values for this enum
public
static values() : array<string|int, mixed>
Return values
array<string|int, mixed> —getConstants()
private
static getConstants() : mixed