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