REST API initial commit
[lhc/web/wiklou.git] / includes / Rest / CopyableStreamInterface.php
1 <?php
2
3 namespace MediaWiki\Rest;
4
5 /**
6 * An interface for a stream with a copyToStream() function.
7 */
8 interface CopyableStreamInterface extends \Psr\Http\Message\StreamInterface {
9 /**
10 * Copy this stream to a specified stream resource. For some streams,
11 * this can be implemented without a tight loop in PHP code.
12 *
13 * Note that $stream is not a StreamInterface object.
14 *
15 * @param resource $stream Destination
16 */
17 function copyToStream( $stream );
18 }