/** * @param int $limit * @return string */ public function __invoke($limit = 10) { $thievesEntityData = $this->serviceCache->getItem('PServerSRORankingJobThievesInfo', function () use($limit) { return $this->rankingService->getTopThievesEntityData($limit); }, 180); $viewModel = new ViewModel(['jobList' => $thievesEntityData]); $viewModel->setTemplate('p-server-sro/ranking-job-thieves'); return $this->getView()->render($viewModel); }