Add doc-typehints to class properties found by the PropertyDocumentation sniff to improve the documentation. Once the sniff is enabled it avoids that new code is missing type declarations. This is focused on documentation and does not change code. Change-Id: Idf17719c875466810313f0fbbf16bc67f3e40059
19 lines
398 B
PHP
19 lines
398 B
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 );
|
|
}
|
|
}
|