Completed
Push — master ( e12848...97e1ec )
by John
21s queued 12s
created

ProblemSample   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
eloc 5
dl 0
loc 8
rs 10
c 1
b 0
f 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A problem() 0 2 1
1
<?php
2
3
namespace App\Models\Eloquent;
4
5
use Illuminate\Database\Eloquent\Model;
6
7
class ProblemSample extends Model
8
{
9
    protected $table='problem_sample';
10
    protected $primaryKey='psid';
11
    protected $fillable = ['sample_input', 'sample_output'];
12
13
    public function problem() {
14
        return $this->belongTo('App\Models\Eloquent\Problem','pid','pid');
15
    }
16
}
17