BehaviorOption
in package
Table of Contents
- ALL = 2
- EXCEPTIONS = 1
- NONE = 0
- fromConfig() : int
- Reads a configured value: integers like "1" are accepted, anything unrecognised shows no errors.
- isValidOption() : bool
Constants
ALL
public
mixed
ALL
= 2
EXCEPTIONS
public
mixed
EXCEPTIONS
= 1
NONE
public
mixed
NONE
= 0
Methods
fromConfig()
Reads a configured value: integers like "1" are accepted, anything unrecognised shows no errors.
public
static fromConfig(mixed $value) : int
Parameters
- $value : mixed
Return values
int —isValidOption()
public
static isValidOption(mixed $option) : bool
Parameters
- $option : mixed