| Conditions | 3 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 31 | public function extract($query) |
||
| 32 | { |
||
| 33 | if (!$query instanceof Query) { |
||
| 34 | throw new InvalidQueryException(\sprintf( |
||
| 35 | 'Query must implement "%s" interface, "%s" given.', |
||
| 36 | Query::class, |
||
| 37 | \is_object($query) ? \get_class($query) : \gettype($query) |
||
| 38 | )); |
||
| 39 | } |
||
| 40 | |||
| 41 | return $query->getQueryType(); |
||
| 42 | } |
||
| 44 |