You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
546 B
PHP
26 lines
546 B
PHP
<?php
|
|
|
|
namespace Core\Constants;
|
|
|
|
|
|
class Priority extends \BaseClass {
|
|
const CRITICAL = 0;
|
|
const HIGH = 1;
|
|
const MEDIUM = 2;
|
|
const LOW = 3;
|
|
|
|
static function getByValue($value) {
|
|
switch ($value) {
|
|
case self::CRITICAL:
|
|
return 'CRITICAL';
|
|
case self::HIGH:
|
|
return 'HIGH';
|
|
case self::MEDIUM:
|
|
return 'MEDIUM';
|
|
case self::LOW:
|
|
return 'LOW';
|
|
default:
|
|
return 'UNKNOWN';
|
|
}
|
|
}
|
|
} |