You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
671 B
35 lines
671 B
<?php
|
|
|
|
namespace App\Entities\Projects;
|
|
|
|
use App\Entities\ReferenceAbstract;
|
|
|
|
class Priority extends ReferenceAbstract
|
|
{
|
|
protected static $lists = [
|
|
1 => 'minor',
|
|
2 => 'major',
|
|
3 => 'critical',
|
|
];
|
|
|
|
protected static $colors = [
|
|
1 => 'info',
|
|
2 => 'warning',
|
|
3 => 'danger',
|
|
];
|
|
|
|
public static function getNameById($singleId)
|
|
{
|
|
return trans('issue.'.static::getById($singleId));
|
|
}
|
|
|
|
public static function toArray()
|
|
{
|
|
$lists = [];
|
|
foreach (static::$lists as $key => $value) {
|
|
$lists[$key] = trans('issue.'.$value);
|
|
}
|
|
|
|
return $lists;
|
|
}
|
|
}
|