| Total Complexity | 4 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 12 | class ConsoleBufferedOutput extends ConsoleOutput |
||
| 13 | { |
||
| 14 | private string $buffer = ''; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Returns buffer content optionally clearing it. |
||
| 18 | * |
||
| 19 | * @param bool $clearBuffer |
||
| 20 | * |
||
| 21 | * @return string |
||
| 22 | */ |
||
| 23 | 4 | public function fetch(bool $clearBuffer = false): string |
|
| 31 | } |
||
| 32 | |||
| 33 | 2 | protected function doWrite(string $message, bool $newline): void |
|
| 44 |