PHP Environment

AbstractLoad
in package
implements LoadInterface

AbstractYes

This is a simple Load implementation that other Load can inherit from.

Table of Contents

Interfaces

LoadInterface
Describes Load interface.

Properties

$environments  : array<string, string>

Methods

load()  : static
Return an instance with loaded data from array.
loadIni()  : static
Return an instance with loaded data from ini file.
loadJson()  : static
Return an instance with loaded data from json file.
getKey()  : string
Retrieve normalized variable key.

Properties

$environments

protected array<string, string> $environments = []

Methods

load()

Return an instance with loaded data from array.

public load(array<string, mixed> $Data) : static
Parameters
$Data : array<string, mixed>

The load data.

Tags
throws
InvalidArgumentException

If error.

Return values
static

loadIni()

Return an instance with loaded data from ini file.

public loadIni(string $Filename) : static
Parameters
$Filename : string

The ini filename.

Tags
throws
InvalidArgumentException

If error.

Return values
static

loadJson()

Return an instance with loaded data from json file.

public loadJson(string $Filename) : static
Parameters
$Filename : string

The ini filename.

Tags
throws
InvalidArgumentException

If error.

Return values
static

getKey()

Retrieve normalized variable key.

protected getKey(string $Name) : string
Parameters
$Name : string

The variable name.

Return values
string

        
On this page

Search results