for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Count log entries
*
* @package CacheCheck\Service\Analyzer
* @author Tim Lochmüller
*/
namespace HDNET\CacheCheck\Service\Analyzer;
use HDNET\CacheCheck\Domain\Model\Cache;
class CountLogEntries extends AbstractAnalyzer
{
* Get the given KPI
* @param Cache $cache
* @return mixed
* @throws \HDNET\CacheCheck\Exception
public function getKpi(Cache $cache)
$databaseConnection = $this->getDatabaseConnection();
$where = 'cache_name = "' . $cache->getName() . '"';
return (int)$databaseConnection->exec_SELECTcountRows('*', 'tx_cachecheck_domain_model_log', $where);
}
* Format the given KPI
* @param mixed $kpi
* @return string
public function getFormat($kpi)
return $kpi;