/** * @return array */ public function getStaticGamesAction() { $readModel = $this->readModelRepository->findAll(); if (count($readModel) < 1) { return ["no content"]; } $data = []; foreach ($readModel as $model) { $tmp = []; $tmp["id"] = $model->getId(); $tmp["gameStatus"] = $model->getGameStatus(); $tmp["gameStartTime"] = $model->getGameStartTime(); $tmp["gameEndTime"] = $model->getGameEndTime(); $data[] = $tmp; } return $data; }
/** * @return PostCategoryCount[] */ public function findAll() { return $this->broadwayRepository->findAll(); }