1 | <?php |
||
12 | class DeployKeys extends AbstractRepositories |
||
13 | { |
||
14 | |||
15 | /** |
||
16 | * List deploy keys |
||
17 | * |
||
18 | * @link https://developer.github.com/v3/repos/keys/#list |
||
19 | * @return array |
||
20 | */ |
||
21 | public function listDeployKeys(): array |
||
27 | |||
28 | /** |
||
29 | * Get a deploy key |
||
30 | * |
||
31 | * @link https://developer.github.com/v3/repos/keys/#get |
||
32 | * |
||
33 | * @param int $id |
||
34 | * |
||
35 | * @return array |
||
36 | */ |
||
37 | public function getDeployKey(int $id): array |
||
42 | |||
43 | /** |
||
44 | * Add a new deploy key |
||
45 | * |
||
46 | * @link https://developer.github.com/v3/repos/keys/#create |
||
47 | * |
||
48 | * @param string $title |
||
49 | * @param string $key |
||
50 | * |
||
51 | * @return array |
||
52 | */ |
||
53 | public function addNewDeployKey(string $title, string $key): array |
||
62 | |||
63 | /** |
||
64 | * Remove a deploy key |
||
65 | * |
||
66 | * @link https://developer.github.com/v3/repos/keys/#delete |
||
67 | * |
||
68 | * @param int $id |
||
69 | * |
||
70 | * @return array |
||
71 | */ |
||
72 | public function removeDeployKey(int $id): array |
||
77 | } |