Debian Codegraph @

includes/Rest/Stream.php

raw symbols SCIP
1 <?php
2
3 namespace MediaWiki\Rest;
4
5 use GuzzleHttp\Psr7;
6
7 class Stream extends Psr7\Stream implements CopyableStreamInterface {
8 /** @var resource */
9 private $stream;
10
11 public function __construct( $stream, $options = [] ) {
12 $this->stream = $stream;
13 parent::__construct( $stream, $options );
14 }
15
16 public function copyToStream( $target ) {
17 stream_copy_to_stream( $this->stream, $target );
18 }
19 }