3 final class ReleephSeverityFieldSpecification
4 extends ReleephLevelFieldSpecification
{
6 const HOTFIX
= 'HOTFIX';
7 const RELEASE
= 'RELEASE';
9 public function getFieldKey() {
13 public function getName() {
14 return pht('Severity');
17 public function getStorageKey() {
18 return 'releeph:severity';
21 public function getLevels() {
28 public function getDefaultLevel() {
32 public function getNameForLevel($level) {
33 static $names = array(
34 self
::HOTFIX
=> 'HOTFIX',
35 self
::RELEASE
=> 'RELEASE',
37 return idx($names, $level, $level);
40 public function getDescriptionForLevel($level) {
43 if ($descriptions === null) {
44 $descriptions = array(
45 self
::HOTFIX
=> pht('Needs merging and fixing right now.'),
46 self
::RELEASE
=> pht('Required for the currently rolling release.'),
50 return idx($descriptions, $level);