Device
extends Enum
in package
This is the devices enumerate.
Tags
Table of Contents
DESKTOP | = 'Desktop' | |
---|---|---|
MOBILE | = 'Mobile' | |
TABLET | = 'Tablet' | |
UNKNOWN | = 'Unknown' | |
getValues() | : array<string|int, mixed> | |
isValid() | Check if the given value is inside the called enumerate. | : bool |
Constants
DESKTOP
public
mixed
DESKTOP
= 'Desktop'
MOBILE
public
mixed
MOBILE
= 'Mobile'
TABLET
public
mixed
TABLET
= 'Tablet'
UNKNOWN
public
mixed
UNKNOWN
= 'Unknown'
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