| 1 | <?php  | 
            ||
| 8 | class BufferDiffOutput extends DiffConsoleOutput  | 
            ||
| 9 | { | 
            ||
| 10 | /** @var array */  | 
            ||
| 11 | protected $written;  | 
            ||
| 12 | |||
| 13 | /**  | 
            ||
| 14 | * BufferDiffOutput constructor.  | 
            ||
| 15 | */  | 
            ||
| 16 | public function __construct()  | 
            ||
| 21 | |||
| 22 | /**  | 
            ||
| 23 | * @param array|string $messages  | 
            ||
| 24 | * @param bool $newline  | 
            ||
| 25 | * @param int $options  | 
            ||
| 26 | */  | 
            ||
| 27 | public function write($messages, $newline = false, $options = 0)  | 
            ||
| 32 | |||
| 33 | /**  | 
            ||
| 34 | * @param array|string $messages  | 
            ||
| 35 | * @param int $options  | 
            ||
| 36 | */  | 
            ||
| 37 | public function writeln($messages, $options = 0)  | 
            ||
| 42 | |||
| 43 | /**  | 
            ||
| 44 | * @param string|\string[] $messages  | 
            ||
| 45 | * @param bool $newline  | 
            ||
| 46 | * @param int $options  | 
            ||
| 47 | */  | 
            ||
| 48 | public function reWrite($messages, $newline = false, $options = 0)  | 
            ||
| 53 | |||
| 54 | /**  | 
            ||
| 55 | * @return array  | 
            ||
| 56 | */  | 
            ||
| 57 | public function getWritten()  | 
            ||
| 61 | }  | 
            ||
| 62 |