public function topMediaByAction($range = null, $action = null, $max = -1) { if ($range === null) { $range = $this->getYesterdayRange(); } if ($action === null) { $action = LogResourceReadEvent::ACTION; } $resultData = $this->logRepository->topMediaByAction($range, $action, $max); return $resultData; }