1 | <?php |
||
16 | class GitHubLintImplementation implements GitHubLint |
||
17 | { |
||
18 | /** |
||
19 | * @var AnalysePullRequestCommits |
||
20 | */ |
||
21 | private $analyser; |
||
22 | |||
23 | /** |
||
24 | * GitHubLintImplementation constructor. |
||
25 | * |
||
26 | * @param Client $client |
||
27 | */ |
||
28 | public function __construct(Client $client) |
||
40 | |||
41 | /** |
||
42 | * Analyse the commits on a pull request and set the statuses |
||
43 | * |
||
44 | * @param string $username |
||
45 | * @param string $repository |
||
46 | * @param int $pullRequest |
||
47 | * |
||
48 | * @throws GitHubLintException if an undocumented exception is thrown, it'll be wrapped in this exception. |
||
49 | */ |
||
50 | public function analyse(string $username, string $repository, int $pullRequest) |
||
58 | } |
||
59 |