| Total Complexity | 1 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 36 | class Status |
||
| 37 | { |
||
| 38 | const UNKNOWN = 1; |
||
| 39 | const SUCCESS = 2; |
||
| 40 | const WARNING = 4; |
||
| 41 | const FAILED = 8; |
||
| 42 | |||
| 43 | const LABEL = array( |
||
| 44 | 1 => 'Unknown', |
||
| 45 | 2 => 'Success', |
||
| 46 | 4 => 'Warning', |
||
| 47 | 8 => 'Failure', |
||
| 48 | ); |
||
| 49 | |||
| 50 | /** |
||
| 51 | * Get label status. |
||
| 52 | * |
||
| 53 | * @param int $status Status id |
||
| 54 | * |
||
| 55 | * @return string |
||
| 56 | */ |
||
| 57 | public static function getLabel(int $status): string |
||
| 62 |