BackgroundDaemonState: reduce API

This commit is contained in:
Thomas Gelf 2020-04-17 09:23:11 +02:00
parent 80f9ea29b5
commit fd80344d79

View File

@ -17,11 +17,6 @@ class BackgroundDaemonState
$this->db = $db;
}
public function hasProblems()
{
return $this->isRunning();
}
public function isRunning()
{
foreach ($this->getInstances() as $instance) {
@ -33,7 +28,7 @@ class BackgroundDaemonState
return false;
}
public function getInstances()
protected function getInstances()
{
if ($this->instances === null) {
$this->instances = $this->fetchInfo();