filename = $filename; $this->mode = $mode; } /** * Creates the underlying stream lazily when required. * * @return StreamInterface */ protected function createStream() { return \UglyRobot\Infinite_Uploads\GuzzleHttp\Psr7\Utils::streamFor(\UglyRobot\Infinite_Uploads\GuzzleHttp\Psr7\Utils::tryFopen($this->filename, $this->mode)); } }