Conditions | 2 |
Paths | 2 |
Total Lines | 17 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
52 | public function destroy(string $groupName) : bool |
||
53 | { |
||
54 | $transporter = new StreamCommandCallTransporter( |
||
55 | [ |
||
56 | 'command' => Constants::COMMAND_XGROUP, |
||
57 | 'args' => [ |
||
58 | Constants::COMMAND_OPTION_XGROUP_DESTROY, |
||
59 | $this->_streamName, |
||
60 | $groupName, |
||
61 | ] |
||
62 | ] |
||
63 | ); |
||
64 | |||
65 | try { |
||
66 | return (bool) $this->_client->call($transporter); |
||
67 | } catch (\Exception $exception) { |
||
68 | throw $exception; |
||
69 | } |
||
71 | } |