for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace League\CLImate\Util\Writer;
class Buffer implements WriterInterface
{
/**
* @var string $contents The buffered data.
*/
protected $contents = "";
* Write the content to the buffer.
*
* @param string $content
* @return void
public function write($content)
$this->contents .= $content;
}
* Get the buffered data.
* @return string
public function get()
return $this->contents;
* Clean the buffer and throw away any data.
public function clean()
$this->contents = "";