Lines Matching defs:dest
58 $dest = isset($request['client']['save_to'])
61 $stream = $this->drain($stream, $dest);
88 * @param string|resource|StreamInterface $dest
93 private function drain($stream, $dest)
96 if (!is_resource($dest)) {
99 stream_copy_to_stream($stream, $dest);
101 rewind($dest);
102 return $dest;
107 $dest = is_string($dest)
108 ? new Stream(Utils::open($dest, 'r+'))
109 : Stream::factory($dest);
111 Utils::copyToStream($stream, $dest);
112 $dest->seek(0);
115 return $dest;