abstract class Enum

Class Enum

Methods

static array
constants()

Returns all existing constants

static bool
has(string $value)

Check if the enum has the given value

static bool
is(string $value, array $cmp)

Check if the enum is the given value

Details

at line 61
static array constants()

Returns all existing constants

Return Value

array

at line 26
static bool has(string $value)

Check if the enum has the given value

Parameters

string $value

Return Value

bool

at line 38
static bool is(string $value, array $cmp)

Check if the enum is the given value

Parameters

string $value
array $cmp

Return Value

bool