| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 30 | public function getKpi(Cache $cache) |
||
| 31 | { |
||
| 32 | $countHas = $this->getDatabaseConnection() |
||
| 33 | ->exec_SELECTcountRows('*', 'tx_cachecheck_domain_model_log', 'cache_name = "' . $cache->getName() . '"' . ' AND called_method = "get"'); |
||
| 34 | $logTime = $this->getAnalyzer('LogTime'); |
||
| 35 | if ($logTime->getKpi($cache) == 0) { |
||
| 36 | throw new Exception('No valid log time found', 123627467234); |
||
| 37 | } |
||
| 38 | return $countHas / $logTime->getKpi($cache); |
||
| 39 | } |
||
| 40 | |||
| 53 |