docs/static/reference/php/Dagger/EnvFile.html
class EnvFile extends AbstractObject implements IdAble
A collection of environment variables.
| | $lastQuery | | from AbstractObject |
__construct(AbstractClient $client, QueryBuilderChain $queryBuilderChain)
No description
from AbstractObject
null|array|string|int|float|bool
queryLeaf(QueryBuilder $leafQueryBuilder, string $leafKey)
No description
from AbstractObject
asFile()
Return as a file
bool
exists(string $name)
Check if a variable exists
string
get(string $name, bool|null $raw = null)
Lookup a variable (last occurrence wins) and return its value, or an empty string
id()
A unique identifier for this EnvFile.
namespace(string $prefix)
Filters variables by prefix and removes the pref from keys. Variables without the prefix are excluded. For example, with the prefix "MY_APP_" and variables: MY_APP_TOKEN=topsecret MY_APP_NAME=hello FOO=bar the resulting environment will contain: TOKEN=topsecret NAME=hello
array
variables(bool|null $raw = null)
Return all variables
withVariable(string $name, string $value)
Add a variable
withoutVariable(string $name)
Remove all occurrences of the named variable
__construct(AbstractClient $client, QueryBuilderChain $queryBuilderChain) No description
| AbstractClient | $client | | | QueryBuilderChain | $queryBuilderChain | |
protected null|array|string|int|float|bool queryLeaf(QueryBuilder $leafQueryBuilder, string $leafKey)No description
| QueryBuilder | $leafQueryBuilder | | | string | $leafKey | |
| null|array|string|int|float|bool | |
File asFile()Return as a file
| File | |
bool exists(string $name)Check if a variable exists
| string | $name | |
| bool | |
string get(string $name, bool|null $raw = null)Lookup a variable (last occurrence wins) and return its value, or an empty string
| string | $name | | | bool|null | $raw | |
| string | |
AbstractId id()A unique identifier for this EnvFile.
| AbstractId | |
EnvFile namespace(string $prefix)Filters variables by prefix and removes the pref from keys. Variables without the prefix are excluded. For example, with the prefix "MY_APP_" and variables: MY_APP_TOKEN=topsecret MY_APP_NAME=hello FOO=bar the resulting environment will contain: TOKEN=topsecret NAME=hello
| string | $prefix | |
| EnvFile | |
array variables(bool|null $raw = null)Return all variables
| bool|null | $raw | |
| array | |
EnvFile withVariable(string $name, string $value)Add a variable
| string | $name | | | string | $value | |
| EnvFile | |
EnvFile withoutVariable(string $name)Remove all occurrences of the named variable
| string | $name | |
| EnvFile | |
Generated by Doctum, a API Documentation generator and fork of Sami.