1 | <?php |
||
10 | class SuccessStatus implements Status |
||
11 | { |
||
12 | /** |
||
13 | * Get the importance of this status. |
||
14 | * |
||
15 | * The lower the value the less important it is, the higher the more important. |
||
16 | * |
||
17 | * @return int |
||
18 | */ |
||
19 | public function getWeight() : int |
||
23 | |||
24 | /** |
||
25 | * A human readable message that describes this state |
||
26 | * |
||
27 | * This will be displayed to the user via the GitHub state |
||
28 | * |
||
29 | * @return string |
||
30 | */ |
||
31 | public function getMessage() : string |
||
35 | |||
36 | /** |
||
37 | * Is true if the status on GitHub would be success |
||
38 | * |
||
39 | * @return boolean |
||
40 | */ |
||
41 | public function isPositive() : bool |
||
45 | |||
46 | /** |
||
47 | * The GitHub equivalent of this state |
||
48 | * |
||
49 | * Can be one of pending, success, error, or failure. |
||
50 | * |
||
51 | * @return string |
||
52 | */ |
||
53 | public function getState() : string |
||
57 | |||
58 | /** |
||
59 | * Get a URL with further explanation about this commit message status |
||
60 | * |
||
61 | * @return string |
||
62 | */ |
||
63 | public function getDetailsUrl() : string |
||
67 | } |
||
68 |