1 | <?php |
||
12 | class PolicyManager extends BaseManager |
||
13 | { |
||
14 | |||
15 | /** |
||
16 | * Create element in RabbitMQ |
||
17 | * |
||
18 | * @param $name |
||
19 | * @param array $options |
||
20 | * @return void |
||
21 | */ |
||
22 | public function create($name, array $options) |
||
30 | |||
31 | /** |
||
32 | * Get all element of that type in vhost or in RabbitMQ if vhost = null |
||
33 | * |
||
34 | * @param null $vhost |
||
35 | * @return array |
||
36 | */ |
||
37 | public function getAll($vhost = null) |
||
41 | |||
42 | /** |
||
43 | * delete an element on RabbitMQ |
||
44 | * |
||
45 | * @param $vhost |
||
46 | * @param $name |
||
47 | * @return mixed |
||
48 | */ |
||
49 | public function delete($vhost, $name) |
||
53 | } |
||
54 |