You are here

public function LazyOpenStream::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/guzzlehttp/psr7/src/LazyOpenStream.php \GuzzleHttp\Psr7\LazyOpenStream::__construct()

Parameters

string $filename File to lazily open:

string $mode fopen mode to use when opening the stream:

Overrides StreamDecoratorTrait::__construct

File

vendor/guzzlehttp/psr7/src/LazyOpenStream.php, line 24

Class

LazyOpenStream
Lazily reads or writes to a file that is opened only after an IO operation take place on the stream.

Namespace

GuzzleHttp\Psr7

Code

public function __construct($filename, $mode) {
  $this->filename = $filename;
  $this->mode = $mode;
}