| Total Complexity | 2 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | class Course extends BaseModel |
||
| 29 | { |
||
| 30 | |||
| 31 | protected $casts = [ |
||
|
1 ignored issue
–
show
|
|||
| 32 | 'name' => 'string', |
||
| 33 | 'institution' => 'string', |
||
| 34 | 'course_status_id' => 'int', |
||
| 35 | 'start_date' => 'date', |
||
| 36 | 'end_date' => 'date', |
||
| 37 | ]; |
||
| 38 | protected $fillable = [ |
||
|
1 ignored issue
–
show
|
|||
| 39 | 'name', |
||
| 40 | 'institution', |
||
| 41 | 'course_status_id', |
||
| 42 | 'start_date', |
||
| 43 | 'end_date' |
||
| 44 | ]; |
||
| 45 | |||
| 46 | public function course_status() |
||
|
2 ignored issues
–
show
|
|||
| 47 | { |
||
| 48 | return $this->belongsTo(\App\Models\Lookup\CourseStatus::class); |
||
| 49 | } |
||
| 50 | |||
| 51 | public function courseable() |
||
| 54 | } |
||
| 55 | } |
||
| 56 |