private static function colorize($string, $color) { if (isset(self::$colors[$color])) { return "[" . self::$colors[$color] . 'm' . $string . "[0m"; } return $string; }