Quittio 0.3 API

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
bool

get()

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
int

nullableString()

public nullableString(string $key) : string|null
Parameters
$key : string
Return values
string|null

section()

public section(string $key) : self
Parameters
$key : string
Return values
self

string()

public string(string $key, string $default) : string
Parameters
$key : string
$default : string
Return values
string

strings()

public strings(string $key) : array<int, string>
Parameters
$key : string
Return values
array<int, string>
On this page

Search results