lifetime; } public function getKey($id = null) { return 'moderation_stat'; } public function getContent($id = null) { $statRepo = new StatRepo(); $articleCount = $statRepo->countPendingArticles(); $commentCount = $statRepo->countPendingComments(); return [ 'article_count' => $articleCount, 'comment_count' => $commentCount, ]; } }