Total Complexity | 3 |
Total Lines | 19 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 2 |
1 | <?php |
||
9 | class GroupHomeworkProblem extends Model |
||
10 | { |
||
11 | use HasFactory; |
||
12 | |||
13 | protected $with = ['problem']; |
||
14 | |||
15 | public function homework() |
||
16 | { |
||
17 | return $this->belongsTo('App\Models\Eloquent\GroupHomework'); |
||
18 | } |
||
19 | |||
20 | public function problem() |
||
21 | { |
||
22 | return $this->belongsTo('App\Models\Eloquent\Problem', 'problem_id'); |
||
23 | } |
||
24 | |||
25 | protected function serializeDate(DateTimeInterface $date) |
||
28 | } |
||
29 | } |
||
30 |