Settings
in package
Read onlyYes
FinalYes
Typed read access to a configuration array ("quittio" by default) with dot notation.
Table of Contents
Methods
- __construct() : mixed
- array() : array<string, mixed>
- bool() : bool
- get() : mixed
- int() : int
- nullableString() : string|null
- section() : self
- string() : string
- strings() : array<int, string>
Methods
__construct()
public
__construct(array<string|int, mixed> $values[, string $path = 'quittio' ]) : mixed
Parameters
- $values : array<string|int, mixed>
- $path : string = 'quittio'
-
configuration key of $values, used in error messages
array()
public
array(string $key) : array<string, mixed>
Parameters
- $key : string
Return values
array<string, mixed>bool()
public
bool(string $key, bool $default) : bool
Parameters
- $key : string
- $default : bool
Return values
boolget()
public
get(string $key[, mixed $default = null ]) : mixed
Parameters
- $key : string
- $default : mixed = null
int()
public
int(string $key, int $default) : int
Parameters
- $key : string
- $default : int
Return values
intnullableString()
public
nullableString(string $key) : string|null
Parameters
- $key : string
Return values
string|nullsection()
public
section(string $key) : self
Parameters
- $key : string
Return values
selfstring()
public
string(string $key, string $default) : string
Parameters
- $key : string
- $default : string
Return values
stringstrings()
public
strings(string $key) : array<int, string>
Parameters
- $key : string