MediaWiki
REL1_34
Stream.php
Go to the documentation of this file.
1
<?php
2
3
namespace
MediaWiki\Rest
;
4
5
use GuzzleHttp\Psr7;
6
7
class
Stream
extends
Psr7\Stream implements
CopyableStreamInterface
{
8
private
$stream
;
9
10
public
function
__construct
(
$stream
, $options = [] ) {
11
$this->stream =
$stream
;
12
parent::__construct(
$stream
, $options );
13
}
14
15
public
function
copyToStream
( $target ) {
16
stream_copy_to_stream( $this->stream, $target );
17
}
18
}
MediaWiki\Rest\Stream
Definition
Stream.php:7
MediaWiki\Rest\Stream\copyToStream
copyToStream( $target)
Copy this stream to a specified stream resource.
Definition
Stream.php:15
MediaWiki\Rest\Stream\$stream
$stream
Definition
Stream.php:8
MediaWiki\Rest\Stream\__construct
__construct( $stream, $options=[])
Definition
Stream.php:10
MediaWiki\Rest\CopyableStreamInterface
An interface for a stream with a copyToStream() function.
Definition
CopyableStreamInterface.php:8
MediaWiki\Rest
includes
Rest
Stream.php
Generated on Fri Apr 5 2024 23:10:26 for MediaWiki by
1.9.8