1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace App\Models; |
4
|
|
|
|
5
|
|
|
use App\Models\BaseModel; |
6
|
|
|
|
7
|
|
|
/** |
8
|
|
|
* Class ExperienceAward |
9
|
|
|
* |
10
|
|
|
* @property int $id |
11
|
|
|
* @property string $title |
12
|
|
|
* @property int $award_recipient_type_id |
13
|
|
|
* @property string $issued_by |
14
|
|
|
* @property int $award_recognition_type_id |
15
|
|
|
* @property \Jenssegers\Date\Date $awarded_date |
16
|
|
|
* @property int $experienceable_id |
17
|
|
|
* @property string $experienceable_type |
18
|
|
|
* @property boolean $is_education_requirement |
19
|
|
|
* @property \Jenssegers\Date\Date $created_at |
20
|
|
|
* @property \Jenssegers\Date\Date $updated_at |
21
|
|
|
* |
22
|
|
|
* @property \App\Models\Applicant|\App\Models\JobApplication $experienceable |
23
|
|
|
*/ |
24
|
|
|
class ExperienceAward extends BaseModel |
25
|
|
|
{ |
26
|
|
|
protected $casts = [ |
27
|
|
|
'title' => 'string', |
28
|
|
|
'award_recipient_type_id' => 'int', |
29
|
|
|
'issued_by' => 'string', |
30
|
|
|
'award_recognition_type_id' => 'int', |
31
|
|
|
'awarded_date' => 'date', |
32
|
|
|
'is_education_requirement' => 'boolean' |
33
|
|
|
]; |
34
|
|
|
|
35
|
|
|
protected $fillable = [ |
36
|
|
|
'title', |
37
|
|
|
'award_recipient_type_id', |
38
|
|
|
'issued_by', |
39
|
|
|
'award_recognition_type_id', |
40
|
|
|
'awarded_date', |
41
|
|
|
'is_education_requirement' |
42
|
|
|
]; |
43
|
|
|
|
44
|
|
|
protected $table = ['experiences_award']; |
45
|
|
|
|
46
|
|
|
public function award_recipient_type() //phpcs:ignore |
47
|
|
|
{ |
48
|
|
|
return $this->belongsTo(\App\Models\Lookup\AwardRecipientType::class); |
49
|
|
|
} |
50
|
|
|
|
51
|
|
|
public function award_recognition_type() //phpcs:ignore |
52
|
|
|
{ |
53
|
|
|
return $this->belongsTo(\App\Models\Lookup\AwardRecognitionType::class); |
54
|
|
|
} |
55
|
|
|
|
56
|
|
|
public function experienceable() //phpcs:ignore |
57
|
|
|
{ |
58
|
|
|
return $this->morphTo(); |
59
|
|
|
} |
60
|
|
|
} |
61
|
|
|
|