Passed
Push — master ( b831b6...96f132 )
by John
06:04 queued 21s
created

ContestProblemModel   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 2
Metric Value
eloc 7
dl 0
loc 11
rs 10
c 2
b 0
f 2
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A problem() 0 3 1
1
<?php
2
3
namespace App\Models\Eloquent;
4
5
use Illuminate\Database\Eloquent\Model;
6
use Illuminate\Support\Facades\DB;
7
8
class ContestProblemModel extends Model
9
{
10
    protected $table='contest_problem';
11
    protected $primaryKey='cpid';
12
    const DELETED_AT=null;
13
    const UPDATED_AT=null;
14
    const CREATED_AT=null;
15
16
    public function problem()
17
    {
18
        return $this->belongsTo('App\Models\Eloquent\ProblemModel', 'pid');
19
    }
20
}
21