| 1 | <?php |
||
| 13 | class PreviousFailureStatus implements Status |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * Get the importance of this status. |
||
| 17 | * |
||
| 18 | * The lower the value the less important it is, the higher the more important. |
||
| 19 | * |
||
| 20 | * @return int |
||
| 21 | */ |
||
| 22 | public function getWeight() : int |
||
| 26 | |||
| 27 | /** |
||
| 28 | * The GitHub equivalent of this state |
||
| 29 | * |
||
| 30 | * Can be one of pending, success, error, or failure. |
||
| 31 | * |
||
| 32 | * @return string |
||
| 33 | */ |
||
| 34 | public function getState() : string |
||
| 38 | |||
| 39 | /** |
||
| 40 | * A human readable message that describes this state |
||
| 41 | * |
||
| 42 | * This will be displayed to the user via the GitHub state |
||
| 43 | * |
||
| 44 | * @return string |
||
| 45 | */ |
||
| 46 | public function getMessage() : string |
||
| 50 | } |
||
| 51 |