| Total Complexity | 6 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 24 | class TStdOutWriter extends TTextWriter |
||
| 25 | { |
||
| 26 | /** The file path to open a data stream in memory */ |
||
| 27 | public const STDOUT_URI = 'php://stdout'; |
||
| 28 | |||
| 29 | /** @var mixed the Standard Out stream handle */ |
||
| 30 | private mixed $_stdout = null; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Closes the StdOut handle when STDOUT is not defined |
||
| 34 | */ |
||
| 35 | public function __destruct() |
||
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * Flushes the content that has been written. |
||
| 45 | * @return string the content being flushed. |
||
| 46 | */ |
||
| 47 | public function flush() |
||
| 64 |