1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace App\Models; |
4
|
|
|
|
5
|
|
|
use App\Models\BaseModel; |
6
|
|
|
|
7
|
|
|
/** |
8
|
|
|
* Class ExperienceEducation |
9
|
|
|
* |
10
|
|
|
* @property int $id |
11
|
|
|
* @property int $education_type_id |
12
|
|
|
* @property string $area_of_study |
13
|
|
|
* @property string $institution |
14
|
|
|
* @property int $education_status_id |
15
|
|
|
* @property boolean $is_active |
16
|
|
|
* @property \Jenssegers\Date\Date $start_date |
17
|
|
|
* @property \Jenssegers\Date\Date $end_date |
18
|
|
|
* @property string $thesis_title |
19
|
|
|
* @property boolean $has_blockcert |
20
|
|
|
* @property int $experienceable_id |
21
|
|
|
* @property string $experienceable_type |
22
|
|
|
* @property \Jenssegers\Date\Date $created_at |
23
|
|
|
* @property \Jenssegers\Date\Date $updated_at |
24
|
|
|
* |
25
|
|
|
* @property \App\Models\Lookup\EducationType $education_type |
26
|
|
|
* @property \App\Models\Lookup\EducationStatus $education_status |
27
|
|
|
* @property \App\Models\Applicant|\App\Models\JobApplication $experienceable |
28
|
|
|
*/ |
29
|
|
|
class ExperienceEducation extends BaseModel |
30
|
|
|
{ |
31
|
|
|
protected $casts = [ |
32
|
|
|
'education_type_id' => 'int', |
33
|
|
|
'area_of_study' => 'string', |
34
|
|
|
'institution' => 'string', |
35
|
|
|
'education_status_id' => 'int', |
36
|
|
|
'is_active' => 'boolean', |
37
|
|
|
'start_date' => 'date', |
38
|
|
|
'end_date' => 'date', |
39
|
|
|
'thesis_title' => 'string', |
40
|
|
|
'has_blockcert' => 'boolean' |
41
|
|
|
]; |
42
|
|
|
|
43
|
|
|
protected $fillable = [ |
44
|
|
|
'education_type_id', |
45
|
|
|
'area_of_study', |
46
|
|
|
'institution', |
47
|
|
|
'education_status_id', |
48
|
|
|
'is_active', |
49
|
|
|
'start_date', |
50
|
|
|
'end_date', |
51
|
|
|
'thesis_title', |
52
|
|
|
'has_blockcert' |
53
|
|
|
]; |
54
|
|
|
|
55
|
|
|
protected $table = 'experiences_education'; |
56
|
|
|
|
57
|
|
|
public function education_type() //phpcs:ignore |
58
|
|
|
{ |
59
|
|
|
return $this->belongsTo(\App\Models\Lookup\EducationType::class); |
60
|
|
|
} |
61
|
|
|
|
62
|
|
|
public function education_status() //phpcs:ignore |
63
|
|
|
{ |
64
|
|
|
return $this->belongsTo(\App\Models\Lookup\EducationStatus::class); |
65
|
|
|
} |
66
|
|
|
|
67
|
|
|
public function experienceable() //phpcs:ignore |
68
|
|
|
{ |
69
|
|
|
return $this->morphTo(); |
70
|
|
|
} |
71
|
|
|
} |
72
|
|
|
|