Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 3 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 1 |
| Stream | |
0.00% |
0 / 3 |
|
0.00% |
0 / 2 |
6 | |
0.00% |
0 / 1 |
| __construct | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| copyToStream | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| 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 | /** @inheritDoc */ |
| 12 | public function __construct( $stream, $options = [] ) { |
| 13 | $this->stream = $stream; |
| 14 | parent::__construct( $stream, $options ); |
| 15 | } |
| 16 | |
| 17 | /** @inheritDoc */ |
| 18 | public function copyToStream( $stream ) { |
| 19 | stream_copy_to_stream( $this->stream, $stream ); |
| 20 | } |
| 21 | } |