private getClassByType ( type $type ) : string | ||
$type | type | |
Результат | string |
private function getClassByType($type)
{
if ($type == 'Critical' || $type == 'Long') {
$class = 'text-orange';
} elseif ($type == 'Major' || $type == 'Slow') {
$class = 'text-red';
} elseif ($type == 'Minor' || $type == 'Quick') {
$class = 'text-yellow';
} elseif ($type == 'Note' || $type == 'Instant') {
$class = 'text-blue';
} else {
$class = 'text-gray';
}
return $class;
}