1 | <?php |
||
15 | class StatusSendServiceImplementation implements StatusSendService |
||
16 | { |
||
17 | const CONTEXT = 'Commit Message Style'; |
||
18 | const GITHUB_STATUS_SUCCESS = 'success'; |
||
19 | const GITHUB_STATUS_FAILURE = 'failure'; |
||
20 | |||
21 | /** |
||
22 | * @var Client |
||
23 | */ |
||
24 | private $client; |
||
25 | |||
26 | /** |
||
27 | * StatusSendServiceImplementation constructor. |
||
28 | * |
||
29 | * @param Client $client |
||
30 | */ |
||
31 | public function __construct(Client $client) |
||
35 | |||
36 | /** |
||
37 | * Set a SHA in GitHub to a state |
||
38 | * |
||
39 | * @param string $organisation |
||
40 | * @param string $repository |
||
41 | * @param GitHubMessage $message |
||
42 | */ |
||
43 | public function updateStatus(string $organisation, string $repository, GitHubMessage $message) |
||
70 | } |
||
71 |