| Total Complexity | 4 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Coverage | 30% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class GameModRepository extends Repository |
||
| 8 | { |
||
| 9 | 9 | public function __construct(GameMod $gameMod) |
|
| 12 | 9 | } |
|
| 13 | |||
| 14 | public function getAll($perPage = 20) |
||
| 17 | } |
||
| 18 | |||
| 19 | public function getById(int $id): GameMod |
||
| 20 | { |
||
| 21 | return GameMod::findOrFail($id); |
||
| 22 | } |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @param string $gameCode |
||
| 26 | * @return array |
||
| 27 | */ |
||
| 28 | public function getIdNameListForGame(string $gameCode) |
||
| 34 | } |
||
| 35 | } |
||
| 36 |