| Total Complexity | 3 |
| Total Lines | 19 |
| Duplicated Lines | 0 % |
| Coverage | 66.67% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class UserRolePermissions extends Model |
||
| 8 | { |
||
| 9 | protected $fillable = ['perm_type_id', 'role_id', 'allow']; |
||
| 10 | protected $hidden = ['created_at', 'updated_at', 'id', 'UserRolePermissionTypes']; |
||
| 11 | protected $appends = ['description']; |
||
| 12 | |||
| 13 | 10 | public function getDescriptionAttribute() |
|
| 14 | { |
||
| 15 | 10 | return $this->UserRolePermissionTypes->description; |
|
| 16 | } |
||
| 17 | |||
| 18 | 52 | public function UserRolePermissionTypes() |
|
| 19 | { |
||
| 20 | 52 | return $this->hasOne('App\UserRolePermissionTypes', 'perm_type_id', 'perm_type_id'); |
|
| 21 | } |
||
| 22 | |||
| 23 | public function UserRoleType() |
||
| 26 | } |
||
| 27 | } |
||
| 28 |