1 | <?php |
||
10 | class HookResolver |
||
11 | { |
||
12 | /** |
||
13 | * Load a gitlab or gitlab CI webhook handler. |
||
14 | * |
||
15 | * @param string $hookContent |
||
16 | * |
||
17 | * @return GitlabCiHook|GitlabHook |
||
18 | */ |
||
19 | 10 | public static function load($hookContent) |
|
33 | |||
34 | /** |
||
35 | * Check if the hook content has a valid object kind. |
||
36 | * |
||
37 | * @param string $hookContent |
||
38 | * |
||
39 | * @return string $hookContent |
||
40 | */ |
||
41 | 10 | private static function objectValidation($hookContent) |
|
55 | } |
||
56 |