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 | * A human readable message that describes this state |
||
29 | * |
||
30 | * This will be displayed to the user via the GitHub state |
||
31 | * |
||
32 | * @return string |
||
33 | */ |
||
34 | public function getMessage() : string |
||
38 | |||
39 | /** |
||
40 | * Is true if the status on GitHub would be success |
||
41 | * |
||
42 | * @return boolean |
||
43 | */ |
||
44 | public function isPositive() : bool |
||
48 | |||
49 | /** |
||
50 | * The GitHub equivalent of this state |
||
51 | * |
||
52 | * Can be one of pending, success, error, or failure. |
||
53 | * |
||
54 | * @return string |
||
55 | */ |
||
56 | public function getState() : string |
||
60 | |||
61 | /** |
||
62 | * Get a URL with further explanation about this commit message status |
||
63 | * |
||
64 | * @return string |
||
65 | */ |
||
66 | public function getDetailsUrl() : string |
||
70 | } |
||
71 |