1 | <?php |
||
12 | class GitHubMessageImplementation extends MessageImplementation implements GitHubMessage |
||
13 | { |
||
14 | /** |
||
15 | * @var string |
||
16 | */ |
||
17 | private $sha; |
||
18 | |||
19 | /** |
||
20 | * GitHubMessageImplementation constructor. |
||
21 | * |
||
22 | * @param string $message |
||
23 | * @param string $sha |
||
24 | */ |
||
25 | public function __construct(string $message, string $sha) |
||
30 | |||
31 | /** |
||
32 | * Get the highest weight status associated with this message |
||
33 | * |
||
34 | * @return Status |
||
35 | */ |
||
36 | public function getHighestWeightStatus() : Status |
||
49 | |||
50 | /** |
||
51 | * Get the SHA for this commit |
||
52 | * |
||
53 | * @return string |
||
54 | */ |
||
55 | public function getSha() : string |
||
59 | } |
||
60 |