for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Created by PhpStorm.
* User: sheldon
* Date: 18-4-19
* Time: 下午2:23.
*/
namespace Yeelight\Models\Tools\Terminal;
use Symfony\Component\Console\Output\Output;
* Class StringOutput
*
* @category Yeelight
* @package Yeelight\Models\Tools\Terminal
* @author Sheldon Lee <[email protected]>
* @license https://opensource.org/licenses/MIT MIT
* @link https://www.yeelight.com
class StringOutput extends Output
{
public $output = '';
public function clear()
$this->output = '';
}
protected function doWrite($message, $newline)
$this->output .= $message.($newline ? "\n" : '');
public function getContent()
return trim($this->output);