/** * @param bool|false $showView * @return string */ public function __invoke($showView = false) { $currentPlayer = $this->playerHistoryService->getCurrentPlayer(); $result = $currentPlayer; if ($showView) { $viewModel = new ViewModel(['currentPlayer' => $currentPlayer, 'maxPlayer' => $this->generalOptions->getMaxPlayer()]); $viewModel->setTemplate('helper/playerHistory'); $result = $this->getView()->render($viewModel); } return $result; }
/** * @return string */ public function getConfigFormat() { return $this->generalOptions->getDatetime()['format']['time']; }
/** * @return bool */ public function isCachingEnable() { return (bool) $this->generalOptions->getCache()['enable']; }