| Total Complexity | 1 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 27 | class Status { |
||
| 28 | |||
| 29 | const SUCCESS = 1; |
||
| 30 | const FAILED = 2; |
||
| 31 | const ERROR = 4; |
||
| 32 | const SKIPPED = 8; |
||
| 33 | const WARNING = 16; |
||
| 34 | Const LABEL = array( |
||
| 35 | 1 => "Passed", |
||
| 36 | 2 => "Failed", |
||
| 37 | 4 => "Errored", |
||
| 38 | 8 => "Skipped", |
||
| 39 | 16 => "Warning", |
||
| 40 | ); |
||
| 41 | |||
| 42 | /** |
||
| 43 | * Get label status. |
||
| 44 | * |
||
| 45 | * @param int $status |
||
| 46 | * |
||
| 47 | * @return string |
||
| 48 | */ |
||
| 49 | static public function getLabel(int $status) { |
||
| 53 |