1 | <?php |
||
23 | class Target extends AbstractNode |
||
24 | { |
||
25 | /** |
||
26 | * add target |
||
27 | * |
||
28 | * @param string $nameOrId |
||
29 | * @param \Unikorp\KongAdminApi\Document\Target $document |
||
30 | * |
||
31 | * @return \Psr\Http\Message\ResponseInterface |
||
32 | */ |
||
33 | 1 | public function addTarget(string $nameOrId, Document $document): ResponseInterface |
|
37 | |||
38 | /** |
||
39 | * list targets |
||
40 | * |
||
41 | * @param string $nameOrId |
||
42 | * |
||
43 | * @return \Psr\Http\Message\ResponseInterface |
||
44 | */ |
||
45 | 1 | public function listTargets(string $nameOrId): ResponseInterface |
|
49 | |||
50 | /** |
||
51 | * list active targets |
||
52 | * |
||
53 | * @param string $nameOrId |
||
54 | * |
||
55 | * @return \Psr\Http\Message\ResponseInterface |
||
56 | */ |
||
57 | 1 | public function listActiveTargets(string $nameOrId): ResponseInterface |
|
61 | |||
62 | /** |
||
63 | * delete target |
||
64 | * |
||
65 | * @param string $nameOrId |
||
66 | * @param string $target |
||
67 | * |
||
68 | * @return \Psr\Http\Message\ResponseInterface |
||
69 | */ |
||
70 | 1 | public function deleteTarget(string $nameOrId, string $target): ResponseInterface |
|
74 | } |
||
75 |