| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 30 | public function getKpi(Cache $cache) |
||
| 31 | { |
||
| 32 | $startTime = $this->getDatabaseConnection() |
||
| 33 | ->exec_SELECTgetSingleRow('timestamp', 'tx_cachecheck_domain_model_log', 'cache_name = "' . $cache->getName() . '"', '', 'timestamp ASC'); |
||
| 34 | if (!isset($startTime['timestamp'])) { |
||
| 35 | throw new Exception('No start time found', 1236723844); |
||
| 36 | } |
||
| 37 | return (int)($startTime['timestamp'] / 1000); |
||
| 38 | } |
||
| 39 | |||
| 52 |