Total Complexity | 5 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
8 | class JudgeServer extends Model |
||
9 | { |
||
10 | protected $table='judge_server'; |
||
11 | protected $primaryKey='jsid'; |
||
12 | |||
13 | protected $fillable=[ |
||
14 | 'scode', 'name', 'host', 'port', 'token', 'available', 'oid', 'usage', 'status', 'status_update_at' |
||
15 | ]; |
||
16 | |||
17 | public static function column($key) |
||
18 | { |
||
19 | return Self::groupBy($key)->whereNotNull($key)->pluck($key)->toArray(); |
||
20 | } |
||
21 | |||
22 | public function oj() { |
||
24 | } |
||
25 | |||
26 | public static function boot() |
||
35 | } |
||
36 | } |
||
40 |