Gender
extends Enum
in package
This is the genders enumerate.
Tags
Table of Contents
FEMALE | = 'FEMALE' | |
---|---|---|
MALE | = 'MALE' | |
UNDEFINED | = 'UNDEFINED' | |
getValues() | : array<string|int, mixed> | |
isValid() | Check if the given value is inside the called enumerate. | : bool |
Constants
FEMALE
public
mixed
FEMALE
= 'FEMALE'
MALE
public
mixed
MALE
= 'MALE'
UNDEFINED
public
mixed
UNDEFINED
= 'UNDEFINED'
Methods
getValues()
public
static getValues() : array<string|int, mixed>
Return values
array<string|int, mixed> —isValid()
Check if the given value is inside the called enumerate.
public
static isValid(string $value) : bool
Parameters
- $value : string
-
value to check