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