src/Output/AbstractPrinter.php
public function colorize(string $startColor, string $text, string $endColor = self::NORMAL): string
    {
        if ($this->getEnableColoredOutput()) {
            return $startColor . $text . $endColor;
        }

        return $text;
    }
public function colorize(string $startColor, string $text, string $endColor = self::NORMAL): string
    {
        if ($this->getEnableColoredOutput()) {
            return $startColor . $text . $endColor;
        }

        return $text;
    }
public function colorize ( string $ startColor , string $ text , string $ endColor = self :: NORMAL ) : string { if ( $ this -> getEnableColoredOutput ( ) ) { return $ startColor . $ text . $ endColor ; } return $ text ; }
Wrap the text in colors

@param string $startColor
@param string $text
@param string $endColor
@return string
Wrap the text in colors