diff --git a/src/MDOutputHandler.php b/src/MDOutputHandler.php index 41e7c87..6fba63f 100644 --- a/src/MDOutputHandler.php +++ b/src/MDOutputHandler.php @@ -35,6 +35,20 @@ final class MDOutputHandler { /** @var boolean */ private bool $_logfile_status_checked = false; + /** + * Simple echo that is silent during $disable_completely. + * + * @param string $input Input text. + * + * @return void + */ + public static function echo(string $input):void { + + if (self::$disable_completely === true) return; + echo $input; + + } + /** * Writes log file contents to log file. *