rest_mediatekdocuments

ReplacingWriter
in package
implements WriterInterface

FinalYes

Table of Contents

Interfaces

WriterInterface

Properties

$reader  : ReaderInterface
The inner reader to use.
$seen  : array<string, string>
The record of seen variables.
$writer  : WriterInterface
The inner writer to use.

Methods

__construct()  : void
Create a new replacement writer instance.
delete()  : bool
Delete an environment variable, if possible.
write()  : bool
Write to an environment variable, if possible.
exists()  : bool
Does the given environment variable exist.

Properties

$seen

The record of seen variables.

private array<string, string> $seen

Methods

delete()

Delete an environment variable, if possible.

public delete(non-empty-string $name) : bool
Parameters
$name : non-empty-string
Return values
bool

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

exists()

Does the given environment variable exist.

private exists(non-empty-string $name) : bool

Returns true if it currently exists, or existed at any point in the past that we are aware of.

Parameters
$name : non-empty-string
Return values
bool

        
On this page

Search results