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