Total Complexity | 7 |
Total Lines | 44 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | class GameRepository |
||
11 | { |
||
12 | protected $model; |
||
13 | |||
14 | public function __construct(Game $game) |
||
15 | { |
||
16 | $this->model = $game; |
||
17 | } |
||
18 | |||
19 | /** |
||
20 | * @param int $perPage |
||
21 | * @return mixed |
||
22 | */ |
||
23 | public function getAll($perPage = 20) |
||
24 | { |
||
25 | return Game::orderBy('name')->paginate($perPage); |
||
26 | } |
||
27 | |||
28 | /** |
||
29 | * Upgrade Games and Game Mods using GameAP API |
||
30 | */ |
||
31 | public function upgradeFromRepo() |
||
54 | } |
||
55 | } |