function 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 32
Class
- LazyOpenStream
- Lazily reads or writes to a file that is opened only after an IO operation take place on the stream.
Namespace
GuzzleHttp\Psr7Code
public function __construct(string $filename, string $mode) {
$this->filename = $filename;
$this->mode = $mode;
// unsetting the property forces the first access to go through
// __get().
unset($this->stream);
}