Total Complexity | 2 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
9 | class UserSetting extends Model |
||
10 | { |
||
11 | use SoftDeletes; |
||
12 | |||
13 | /* @var array $fillable The fields which are mass assignable in the database */ |
||
14 | protected $fillable = ['user_id', 'hourly_rate', 'currency']; |
||
15 | |||
16 | /** |
||
17 | * Set the hourly rate attribute |
||
18 | * |
||
19 | * @param string $hourlyRate |
||
20 | */ |
||
21 | public function setHourlyRateAttribute($hourlyRate) |
||
25 | } |
||
26 | |||
27 | /** |
||
28 | * Get the hourly rate attribute |
||
29 | * |
||
30 | * @param string $hourlyRate |
||
31 | * @return string |
||
32 | */ |
||
33 | public function getHourlyRateAttribute($hourlyRate) |
||
39 |