[ Index ] |
PHP Cross Reference of Phabricator |
[Summary view] [Print] [Text view]
1 <?php 2 3 final class ReleephSeverityFieldSpecification 4 extends ReleephLevelFieldSpecification { 5 6 const HOTFIX = 'HOTFIX'; 7 const RELEASE = 'RELEASE'; 8 9 public function getFieldKey() { 10 return 'severity'; 11 } 12 13 public function getName() { 14 return 'Severity'; 15 } 16 17 public function getStorageKey() { 18 return 'releeph:severity'; 19 } 20 21 public function getLevels() { 22 return array( 23 self::HOTFIX, 24 self::RELEASE, 25 ); 26 } 27 28 public function getDefaultLevel() { 29 return self::RELEASE; 30 } 31 32 public function getNameForLevel($level) { 33 static $names = array( 34 self::HOTFIX => 'HOTFIX', 35 self::RELEASE => 'RELEASE', 36 ); 37 return idx($names, $level, $level); 38 } 39 40 public function getDescriptionForLevel($level) { 41 static $descriptions = array( 42 self::HOTFIX => 43 'Needs merging and fixing right now.', 44 self::RELEASE => 45 'Required for the currently rolling release.', 46 ); 47 return idx($descriptions, $level); 48 } 49 50 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Sun Nov 30 09:20:46 2014 | Cross-referenced by PHPXref 0.7.1 |