| Current Path : /var/www/html/mediawiki-1.43.1/includes/Rest/ |
| Current File : /var/www/html/mediawiki-1.43.1/includes/Rest/Stream.php |
<?php
namespace MediaWiki\Rest;
use GuzzleHttp\Psr7;
class Stream extends Psr7\Stream implements CopyableStreamInterface {
/** @var resource */
private $stream;
public function __construct( $stream, $options = [] ) {
$this->stream = $stream;
parent::__construct( $stream, $options );
}
public function copyToStream( $target ) {
stream_copy_to_stream( $this->stream, $target );
}
}