Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
16 | public function getResult(): ICommandResult |
||
17 | { |
||
18 | $result = $this->asyncResult->getResult(); |
||
19 | if ($result instanceof ICommandResult) { |
||
20 | return $result; |
||
21 | } else { |
||
22 | throw new UsageException( |
||
23 | 'The supplied SQL statement was supposed to be a command, but it returned a result set. ' . |
||
24 | 'Did you mean to call queryAsync()?' |
||
25 | ); |
||
29 |