| Conditions | 3 |
| Paths | 3 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 17 | public function setBody($params = null) |
||
| 18 | { |
||
| 19 | if (isset($this->index)) { |
||
| 20 | if (isset($params['query'])) { |
||
| 21 | return parent::setBody(['query' => "EXPLAIN QUERY ".$this->index. '\''.$params['query'].'\'']); |
||
| 22 | } |
||
| 23 | throw new RuntimeException('Query param is missing.'); |
||
| 24 | } |
||
| 25 | throw new RuntimeException('Index name is missing.'); |
||
| 26 | } |
||
| 43 |