| Total Complexity | 2 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 40 | class Department extends BaseModel |
||
| 41 | { |
||
| 42 | use CrudTrait; |
||
| 43 | use HasTranslations; |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @var $translatable string[] |
||
|
|
|||
| 47 | * */ |
||
| 48 | public $translatable = [ |
||
| 49 | 'name', |
||
| 50 | 'impact', |
||
| 51 | 'preference', |
||
| 52 | ]; |
||
| 53 | |||
| 54 | /** |
||
| 55 | * @var $fillable string[] |
||
| 56 | * */ |
||
| 57 | protected $fillable = [ |
||
| 58 | 'name', |
||
| 59 | 'impact', |
||
| 60 | 'preference', |
||
| 61 | 'allow_indeterminate', |
||
| 62 | 'is_partner', |
||
| 63 | 'is_host', |
||
| 64 | ]; |
||
| 65 | |||
| 66 | public function users() // phpcs:ignore |
||
| 67 | { |
||
| 68 | return $this->hasMany(\App\Models\User::class); |
||
| 69 | } |
||
| 70 | |||
| 71 | public function job_posters() // phpcs:ignore |
||
| 74 | } |
||
| 75 | } |
||
| 76 |