1 | <?php |
||
11 | class AnalysePullRequestCommitsImplementation implements AnalysePullRequestCommits |
||
12 | { |
||
13 | /** |
||
14 | * @var CommitMessageService |
||
15 | */ |
||
16 | private $commitMessageService; |
||
17 | /** |
||
18 | * @var ValidateMessages |
||
19 | */ |
||
20 | private $validationService; |
||
21 | /** |
||
22 | * @var StatusSendService |
||
23 | */ |
||
24 | private $statusSendService; |
||
25 | |||
26 | /** |
||
27 | * AnalyseAndReportOnCommitImplementation constructor. |
||
28 | * |
||
29 | * @param CommitMessageService $commitMessageService |
||
30 | * @param ValidateMessages $validationService |
||
31 | * @param StatusSendService $statusSendService |
||
32 | */ |
||
33 | public function __construct( |
||
42 | |||
43 | /** |
||
44 | * Validate the messages in a pull request |
||
45 | * |
||
46 | * @param string $username |
||
47 | * @param string $repository |
||
48 | * @param int $pullRequestId |
||
49 | */ |
||
50 | public function check(string $username, string $repository, int $pullRequestId) |
||
60 | } |
||
61 |