1<?php
2
3// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.
4// See the LICENCE file in the repository root for full licence text.
5
6namespace App\Models\UserStatistics;
7
8abstract class VariantModel extends Model
9{
10 // placeholder as the table is missing some columns
11 public float $accuracy;
12 public int $accuracy_count;
13 public int $accuracy_total;
14 public int $count100;
15 public int $count300;
16 public int $count50;
17 public int $countMiss;
18 public int $exit_count;
19 public int $fail_count;
20 public float $level;
21 public int $max_combo;
22 public int $rank;
23 public int $ranked_score;
24 public int $replay_popularity;
25 public int $total_score;
26 public int $total_seconds_played;
27
28 // placeholder setters so they can be assigned using #fill etc
29 public function setAccuracyAttribute($value)
30 {
31 $this->accuracy = $value;
32 }
33
34 public function setAccuracyCountAttribute($value)
35 {
36 $this->accuracy_count = $value;
37 }
38
39 public function setAccuracyTotalAttribute($value)
40 {
41 $this->accuracy_total = $value;
42 }
43
44 public function setCount100Attribute($value)
45 {
46 $this->count100 = $value;
47 }
48
49 public function setCount300Attribute($value)
50 {
51 $this->count300 = $value;
52 }
53
54 public function setCount50Attribute($value)
55 {
56 $this->count50 = $value;
57 }
58
59 public function setCountMissAttribute($value)
60 {
61 $this->countMiss = $value;
62 }
63
64 public function setExitCountAttribute($value)
65 {
66 $this->exit_count = $value;
67 }
68
69 public function setFailCountAttribute($value)
70 {
71 $this->fail_count = $value;
72 }
73
74 public function setLevelAttribute($value)
75 {
76 $this->level = $value;
77 }
78
79 public function setMaxComboAttribute($value)
80 {
81 $this->max_combo = $value;
82 }
83
84 public function setRankAttribute($value)
85 {
86 $this->rank = $value;
87 }
88
89 public function setRankedScoreAttribute($value)
90 {
91 $this->ranked_score = $value;
92 }
93
94 public function setReplayPopularityAttribute($value)
95 {
96 $this->replay_popularity = $value;
97 }
98
99 public function setTotalScoreAttribute($value)
100 {
101 $this->total_score = $value;
102 }
103
104 public function setTotalSecondsPlayedAttribute($value)
105 {
106 $this->total_seconds_played = $value;
107 }
108}