| 1 | <?php |
||
| 12 | class SuccessStatus implements Status |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * Get the importance of this status. |
||
| 16 | * |
||
| 17 | * The lower the value the less important it is, the higher the more important. |
||
| 18 | * |
||
| 19 | * @return int |
||
| 20 | */ |
||
| 21 | public function getWeight() : int |
||
| 25 | |||
| 26 | /** |
||
| 27 | * A human readable message that describes this state |
||
| 28 | * |
||
| 29 | * This will be displayed to the user via the GitHub state |
||
| 30 | * |
||
| 31 | * @return string |
||
| 32 | */ |
||
| 33 | public function getMessage() : string |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Is true if the status on GitHub would be success |
||
| 40 | * |
||
| 41 | * @return boolean |
||
| 42 | */ |
||
| 43 | public function isPositive() : bool |
||
| 47 | |||
| 48 | /** |
||
| 49 | * Get a URL with further explanation about this commit message status |
||
| 50 | * |
||
| 51 | * @return string |
||
| 52 | */ |
||
| 53 | public function getDetailsUrl() : string |
||
| 57 | } |
||
| 58 |