Configuration
Table of Contents
- $configuration : array<string|int, array<string|int, mixed>>
- $segment : string
- __construct() : mixed
- get() : string
- Returns configuration by providet key
- getSegment() : array<string|int, string>
- Returns segment form configuration file
- setSegment() : void
- Sets default segment
- parseIniFile() : array<string|int, array<string|int, mixed>>
- Parses ini file
Properties
$configuration
private
array<string|int, array<string|int, mixed>>
$configuration
$segment
private
string
$segment
Methods
__construct()
public
__construct(string $path) : mixed
Parameters
- $path : string
Return values
mixed —get()
Returns configuration by providet key
public
get(string $key) : string
Parameters
- $key : string
Return values
string —getSegment()
Returns segment form configuration file
public
getSegment(string $segment) : array<string|int, string>
Parameters
- $segment : string
Return values
array<string|int, string> —setSegment()
Sets default segment
public
setSegment(string $segment) : void
Parameters
- $segment : string
Return values
void —parseIniFile()
Parses ini file
private
parseIniFile(string $path) : array<string|int, array<string|int, mixed>>
Parameters
- $path : string