1 | <?php |
||
13 | class CommitMessageServiceImplementation implements CommitMessageService |
||
14 | { |
||
15 | /** |
||
16 | * @var Client |
||
17 | */ |
||
18 | private $client; |
||
19 | |||
20 | |||
21 | /** |
||
22 | * CommitMessageServiceImplementation constructor. |
||
23 | * |
||
24 | * @param Client $client |
||
25 | */ |
||
26 | public function __construct(Client $client) |
||
30 | |||
31 | /** |
||
32 | * Get an array of commit messages for a specific PR |
||
33 | * |
||
34 | * @param string $username |
||
35 | * @param string $repository |
||
36 | * @param int $pullRequestId |
||
37 | * |
||
38 | * @return array |
||
39 | */ |
||
40 | public function getMessages(string $username, string $repository, int $pullRequestId) : array |
||
54 | } |
||
55 |