Helper/Bootstrap/AbstractViewHelper.php
public static function getPercentageColor(int $percentage, int $redLimit = 30, int $orangeLimit = 70):string
    {
        return $percentage < $redLimit    ? self::COLOR_RED : (
               $percentage < $orangeLimit ? self::COLOR_ORANGE : 
                                            self::COLOR_GREEN);
    }
public static function getPercentageColor(int $percentage, int $redLimit = 30, int $orangeLimit = 70):string
    {
        return $percentage < $redLimit    ? self::COLOR_RED : (
               $percentage < $orangeLimit ? self::COLOR_ORANGE : 
                                            self::COLOR_GREEN);
    }
public static function getPercentageColor ( int $ percentage , int $ redLimit = 30 , int $ orangeLimit = 70 ) : string { return $ percentage < $ redLimit ? self :: COLOR_RED : ( $ percentage < $ orangeLimit ? self :: COLOR_ORANGE : self :: COLOR_GREEN ) ; }
Get a color related to a percentage
@param int $percentage
@param int $redLimit
@param int $orangeLimit
@return string
Get a color related to a percentage