GetValueInfoTrait
Provides implementations for things that are essentially macros for {@see Config::getValueInfos}.
Table of Contents
Methods
- getArray() : array<string|int, mixed>
- getBoolean() : bool
- getFloat() : float
- getInteger() : int
- getString() : string
- getValueInfo() : ConfigValueInfo|null
Methods
getArray()
public
getArray(string $name[, array<string|int, mixed> $default = [] ]) : array<string|int, mixed>
Parameters
- $name : string
- $default : array<string|int, mixed> = []
Return values
array<string|int, mixed>getBoolean()
public
getBoolean(string $name[, bool $default = false ]) : bool
Parameters
- $name : string
- $default : bool = false
Return values
boolgetFloat()
public
getFloat(string $name[, float $default = 0 ]) : float
Parameters
- $name : string
- $default : float = 0
Return values
floatgetInteger()
public
getInteger(string $name[, int $default = 0 ]) : int
Parameters
- $name : string
- $default : int = 0
Return values
intgetString()
public
getString(string $name[, string $default = '' ]) : string
Parameters
- $name : string
- $default : string = ''
Return values
stringgetValueInfo()
public
getValueInfo(string $name) : ConfigValueInfo|null
Parameters
- $name : string