MediaWiki master
DumpStringOutput.php
Go to the documentation of this file.
1<?php
9namespace MediaWiki\Export;
10
11use Stringable;
12
17class DumpStringOutput extends DumpOutput implements Stringable {
19 private $output = '';
20
24 public function write( $string ) {
25 $this->output .= $string;
26 }
27
33 public function __toString() {
34 return $this->output;
35 }
36}
37
39class_alias( DumpStringOutput::class, 'DumpStringOutput' );
__toString()
Get the string containing the output.