1 | <?php |
||
21 | class Key extends AbstractApi |
||
22 | { |
||
23 | /** |
||
24 | * @return KeyEntity[] |
||
25 | */ |
||
26 | public function getAll() |
||
38 | |||
39 | /** |
||
40 | * @param int $id |
||
41 | * |
||
42 | * @return KeyEntity |
||
43 | */ |
||
44 | public function getById($id) |
||
52 | |||
53 | /** |
||
54 | * @param string $fingerprint |
||
55 | * |
||
56 | * @return KeyEntity |
||
57 | */ |
||
58 | public function getByFingerprint($fingerprint) |
||
66 | |||
67 | /** |
||
68 | * @param string $name |
||
69 | * @param string $publicKey |
||
70 | * |
||
71 | * @throws HttpException |
||
72 | * |
||
73 | * @return KeyEntity |
||
74 | */ |
||
75 | public function create($name, $publicKey) |
||
83 | |||
84 | /** |
||
85 | * @param string $id |
||
86 | * @param string $name |
||
87 | * |
||
88 | * @throws HttpException |
||
89 | * |
||
90 | * @return KeyEntity |
||
91 | */ |
||
92 | public function update($id, $name) |
||
100 | |||
101 | /** |
||
102 | * @param string $id |
||
103 | * |
||
104 | * @throws HttpException |
||
105 | */ |
||
106 | public function delete($id) |
||
110 | } |
||
111 |