mapper = $mapper; // Run every time the cron is run $this->setInterval(60); } /** * @inheritDoc */ protected function run($argument) { $now = $this->time->getTime(); $this->mapper->clearOlderThanClearAt($now); $this->mapper->clearStatusesOlderThan($now - StatusService::INVALIDATE_STATUS_THRESHOLD, $now); } }