SettingType
: string
in package
implements
ProvidesArrayOfValues
SettingType
Interfaces, Classes, Traits and Enums
Table of Contents
- APP = 'app'
- GLOBAL = 'global'
- MODEL = 'model'
- USER = 'user'
- is() : bool
- Check if this type is same as given type.
- isIn() : bool
- Check if this type is in given types.
- make() : static
- Make a new instance from given.
- values() : array<string|int, mixed>
Cases
GLOBAL
APP
MODEL
USER
Methods
is()
Check if this type is same as given type.
public
is(SettingType|string|null $case) : bool
Parameters
- $case : SettingType|string|null
Return values
bool —isIn()
Check if this type is in given types.
public
isIn(array<string|int, mixed> $cases) : bool
Parameters
- $cases : array<string|int, mixed>
Return values
bool —make()
Make a new instance from given.
public
static make([SettingType|string|null $case = null ]) : static
Parameters
- $case : SettingType|string|null = null
Return values
static —values()
public
static values() : array<string|int, mixed>