class EnvFile extends AbstractObject implements IdAble

A collection of environment variables.

Properties

$lastQuery from  AbstractObject

Methods

__construct(AbstractClient $client, QueryBuilderChain $queryBuilderChain)

No description

null|array|string|int|float|bool
queryLeaf(QueryBuilder $leafQueryBuilder, string $leafKey)

No description

asFile()

Return as a file

bool
exists(string $name)

Check if a variable exists

string
get(string $name)

Lookup a variable (last occurrence wins) and return its value, or an empty string

id()

A unique identifier for this EnvFile.

array
variables()

Return all variables

withVariable(string $name, string $value)

Add a variable

withoutVariable(string $name)

Remove all occurrences of the named variable

Details

in AbstractObject at line 13
__construct(AbstractClient $client, QueryBuilderChain $queryBuilderChain)

No description

Parameters

AbstractClient $client
QueryBuilderChain $queryBuilderChain

in AbstractObject at line 19
protected null|array|string|int|float|bool queryLeaf(QueryBuilder $leafQueryBuilder, string $leafKey)

No description

Parameters

QueryBuilder $leafQueryBuilder
string $leafKey

Return Value

null|array|string|int|float|bool

at line 19
File asFile()

Return as a file

Return Value

File

at line 28
bool exists(string $name)

Check if a variable exists

Parameters

string $name

Return Value

bool

at line 38
string get(string $name)

Lookup a variable (last occurrence wins) and return its value, or an empty string

Parameters

string $name

Return Value

string

at line 48
AbstractId id()

A unique identifier for this EnvFile.

Return Value

AbstractId

at line 57
array variables()

Return all variables

Return Value

array

at line 66
EnvFile withVariable(string $name, string $value)

Add a variable

Parameters

string $name
string $value

Return Value

EnvFile

at line 77
EnvFile withoutVariable(string $name)

Remove all occurrences of the named variable

Parameters

string $name

Return Value

EnvFile