private function getTopWamWikiIds($count)
 {
     $wamService = new WAMService();
     $inputOptions = ['limit' => $count, 'sortColumn' => 'wam', 'sortDirection' => 'DESC'];
     $wikis = $wamService->getWamIndex($inputOptions)['wam_index'];
     $wikiIds = [];
     foreach ($wikis as $wiki) {
         $wikiIds[] = $wiki['wiki_id'];
     }
     return $wikiIds;
 }
 /**
  * @param int $id WikiId
  * @return array
  */
 protected function getFromWAMService($id)
 {
     $service = new WAMService();
     return ['wam_score' => $service->getCurrentWamScoreForWiki($id)];
 }
 private function getMinMaxWamIndexDateInternal()
 {
     $wamDates = WikiaDataAccess::cache(wfSharedMemcKey('wam_minmax_date', WAMService::MEMCACHE_VER), 2 * 60 * 60, function () {
         $wamService = new WAMService();
         return $wamService->getWamIndexDates();
     });
     return $wamDates;
 }