| Total Complexity | 3 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 8 | class Judger extends Model |
||
| 9 | { |
||
| 10 | protected $table='judger'; |
||
| 11 | protected $primaryKey='jid'; |
||
| 12 | |||
| 13 | protected $fillable=[ |
||
| 14 | 'oid', 'handle', 'password', 'available', 'using', 'user_id' |
||
| 15 | ]; |
||
| 16 | |||
| 17 | public function getReadableNameAttribute() |
||
| 18 | { |
||
| 19 | return $this->handle.' @ '.$this->oj->name; |
||
| 20 | } |
||
| 21 | |||
| 22 | public static function column($key) |
||
| 25 | } |
||
| 26 | |||
| 27 | public function oj() { |
||
| 29 | } |
||
| 30 | } |
||
| 31 |