summaryrefslogtreecommitdiff
blob: fd404f912c61291c7609ce3eab4f332216763868 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php

namespace SMW\Tests\Util;

/**
 * @ingroup Test
 *
 * @group SMW
 * @group SMWExtension
 *
 * @license GNU GPL v2+
 * @since 2.0
 */
class StringBuilder {

	private $string = '';

	/**
	 * @since  2.0
	 */
	public function addnewLine() {
		$this->string = $this->string . "\n";
		return $this;
	}

	/**
	 * @since  2.0
	 */
	public function addString( $string ) {
		$this->string = $this->string . $string;
		return $this;
	}

	/**
	 * @since  2.0
	 */
	public function getString() {
		return $this->string;
	}

}