PutenvAdapter
in package
implements
AdapterInterface
FinalYes
Table of Contents
Interfaces
Methods
- create() : Option<string|int, AdapterInterface>
- Create a new instance of the adapter, if it is available.
- delete() : bool
- Delete an environment variable, if possible.
- read() : Option<string|int, string>
- Read an environment variable, if it exists.
- write() : bool
- Write to an environment variable, if possible.
- __construct() : void
- Create a new putenv adapter instance.
- isSupported() : bool
- Determines if the adapter is supported.
Methods
create()
Create a new instance of the adapter, if it is available.
public
static create() : Option<string|int, AdapterInterface>
Return values
Option<string|int, AdapterInterface>delete()
Delete an environment variable, if possible.
public
delete(non-empty-string $name) : bool
Parameters
- $name : non-empty-string
Return values
boolread()
Read an environment variable, if it exists.
public
read(non-empty-string $name) : Option<string|int, string>
Parameters
- $name : non-empty-string
Return values
Option<string|int, string>write()
Write to an environment variable, if possible.
public
write(non-empty-string $name, string $value) : bool
Parameters
- $name : non-empty-string
- $value : string
Return values
bool__construct()
Create a new putenv adapter instance.
private
__construct() : void
isSupported()
Determines if the adapter is supported.
private
static isSupported() : bool