MultiWriter
in package
implements
WriterInterface
FinalYes
Table of Contents
Interfaces
Properties
- $writers : array<string|int, WriterInterface>
- The set of writers to use.
Methods
- __construct() : void
- Create a new multi-writer instance.
- delete() : bool
- Delete an environment variable, if possible.
- write() : bool
- Write to an environment variable, if possible.
Properties
$writers
The set of writers to use.
private
array<string|int, WriterInterface>
$writers
Methods
__construct()
Create a new multi-writer instance.
public
__construct(array<string|int, WriterInterface> $writers) : void
Parameters
- $writers : array<string|int, WriterInterface>
delete()
Delete an environment variable, if possible.
public
delete(non-empty-string $name) : bool
Parameters
- $name : non-empty-string
Return values
boolwrite()
Write to an environment variable, if possible.
public
write(non-empty-string $name, string $value) : bool
Parameters
- $name : non-empty-string
- $value : string