| Conditions | 2 |
| Paths | 2 |
| Total Lines | 18 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 22 | public function create(string $groupName, bool $isShowFullHistoryStream = true) : bool |
||
| 23 | { |
||
| 24 | $transporter = new StreamCommandCallTransporter( |
||
| 25 | [ |
||
| 26 | 'command' => Constants::COMMAND_XGROUP, |
||
| 27 | 'args' => [ |
||
| 28 | 'CREATE', |
||
| 29 | $this->_streamName, |
||
| 30 | $groupName, |
||
| 31 | (int) $isShowFullHistoryStream |
||
| 32 | ] |
||
| 33 | ] |
||
| 34 | ); |
||
| 35 | |||
| 36 | try { |
||
| 37 | return (bool) $this->_client->call($transporter); |
||
| 38 | } catch (\Exception $exception) { |
||
| 39 | throw $exception; |
||
| 40 | } |
||
| 42 | } |