| 1 | <?php |
||
| 7 | class GitHubMessageImplementation extends MessageImplementation implements GitHubMessage |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var string |
||
| 11 | */ |
||
| 12 | private $sha; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * GitHubMessageImplementation constructor. |
||
| 16 | * |
||
| 17 | * @param string $message |
||
| 18 | * @param string $sha |
||
| 19 | */ |
||
| 20 | public function __construct(string $message, string $sha) |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Get the highest weight status associated with this message |
||
| 28 | * |
||
| 29 | * @return Status |
||
| 30 | */ |
||
| 31 | public function getHighestWeightStatus() : Status |
||
| 44 | |||
| 45 | /** |
||
| 46 | * Get the SHA for this commit |
||
| 47 | * |
||
| 48 | * @return string |
||
| 49 | */ |
||
| 50 | public function getSha() : string |
||
| 54 | } |
||
| 55 |