ArrayAdapter
in package
implements
AdapterInterface
FinalYes
Table of Contents
Interfaces
Properties
- $variables : array<string, string>
- The variables and their values.
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 array adapter instance.
Properties
$variables
The variables and their values.
private
array<string, string>
$variables
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 array adapter instance.
private
__construct() : void