protected static function ansiEscapeWrap(string $string, string $ansiColors, bool $enable = true): string
    {
        if ($enable) {
            return "\x1B[" . $ansiColors . 'm' . $string . "\x1B[0m";
        } else {
            return $string;
        }
    }
protected static function ansiEscapeWrap(string $string, string $ansiColors, bool $enable = true): string
    {
        if ($enable) {
            return "\x1B[" . $ansiColors . 'm' . $string . "\x1B[0m";
        } else {
            return $string;
        }
    }
protected static function ansiEscapeWrap ( string $ string , string $ ansiColors , bool $ enable = true ) : string { if ( $ enable ) { return "\x1B[" . $ ansiColors . 'm' . $ string . "\x1B[0m" ; } else { return $ string ; } }
Wrap a string with the ANSI escape sequence for colorful output

@param string $string The string to wrap
@param string $ansiColors The ansi color sequence (e.g. "1;37")
@param boolean $enable If false, the raw string will be returned
@return string The wrapped or raw string
Wrap a string with the ANSI escape sequence for colorful output