Total Complexity | 5 |
Total Lines | 46 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
13 | class CodeCount extends Controller |
||
14 | { |
||
15 | /** |
||
16 | * Anzahl codes in DB hinterlegen. |
||
17 | * |
||
18 | * @param $codeCount |
||
19 | * |
||
20 | * @return int |
||
21 | */ |
||
22 | public static function setCodeCount($codeCount) |
||
23 | { |
||
24 | DB::table('game_admin')->insert(['code_count' => $codeCount, 'total_points' => $codeCount]); |
||
25 | |||
26 | return intval($codeCount); |
||
27 | } |
||
28 | |||
29 | /** |
||
30 | * Anzahl codes aus DB holen und ausgeben. |
||
31 | * |
||
32 | * @return mixed |
||
33 | */ |
||
34 | public function getCodeCount() |
||
35 | { |
||
36 | $codeCount = DB::table('game_admin')->select('code_count')->first()->code_count; |
||
37 | |||
38 | return $codeCount; |
||
39 | } |
||
40 | |||
41 | /** |
||
42 | * Anzahl codes aus DB holen und ausgeben. |
||
43 | * |
||
44 | * @return mixed |
||
45 | */ |
||
46 | public static function getTotalPoints() |
||
49 | } |
||
50 | |||
51 | public static function setRank() |
||
59 | } |
||
60 | } |
||
61 | } |
||
62 |