| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 51 | 3 | public function execute(CommandInterface $command) |
|
| 52 | { |
||
| 53 | 3 | if (!$this->isConnected()) { |
|
| 54 | 1 | throw new ConnectionException('No connection established'); |
|
| 55 | } |
||
| 56 | 2 | return $this->client->executeRaw(array_merge( |
|
| 57 | 2 | [$command->getCommand()], |
|
| 58 | 2 | $command->getArguments() |
|
| 59 | )); |
||
| 60 | } |
||
| 61 | |||
| 74 |