MultiReader
in package
implements
ReaderInterface
FinalYes
Table of Contents
Interfaces
Properties
- $readers : array<string|int, ReaderInterface>
- The set of readers to use.
Methods
- __construct() : void
- Create a new multi-reader instance.
- read() : Option<string|int, string>
- Read an environment variable, if it exists.
Properties
$readers
The set of readers to use.
private
array<string|int, ReaderInterface>
$readers
Methods
__construct()
Create a new multi-reader instance.
public
__construct(array<string|int, ReaderInterface> $readers) : void
Parameters
- $readers : array<string|int, ReaderInterface>
read()
Read an environment variable, if it exists.
public
read(non-empty-string $name) : Option<string|int, string>
Parameters
- $name : non-empty-string