Total Complexity | 5 |
Total Lines | 44 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
21 | class HrAdvisor extends BaseModel |
||
22 | { |
||
23 | /** |
||
24 | * @var string[] $casts |
||
25 | */ |
||
26 | protected $casts = [ |
||
27 | 'department_id' => 'int', |
||
28 | 'user_id' => 'int' |
||
29 | ]; |
||
30 | |||
31 | /** |
||
32 | * @var string[] $fillable |
||
33 | */ |
||
34 | protected $fillable = ['department_id']; |
||
35 | |||
36 | public function user() |
||
39 | } |
||
40 | |||
41 | public function department() |
||
44 | } |
||
45 | |||
46 | public function claimed_jobs() //phpcs:ignore |
||
51 | ); |
||
52 | } |
||
53 | |||
54 | /** |
||
55 | * Return the full name of the User associated with this HR Advisor. |
||
56 | * |
||
57 | * @return string |
||
1 ignored issue
–
show
|
|||
58 | */ |
||
59 | public function getNameAttribute(): string |
||
67 |