Total Complexity | 2 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
21 | class AssessmentType extends BaseModel |
||
22 | { |
||
23 | use \Dimsav\Translatable\Translatable; |
||
24 | |||
25 | /** |
||
26 | * The columns that can be filled with mass-assignment |
||
27 | * |
||
28 | * @var string[] |
||
29 | */ |
||
30 | protected $fillable = []; |
||
31 | |||
32 | public $translatedAttributes = ['name']; |
||
33 | |||
34 | /** |
||
35 | * Get the collection of Assessments of this type. |
||
36 | * |
||
37 | * @return \Illuminate\Database\Eloquent\Collection |
||
38 | */ |
||
39 | public function assessments() // phpcs:ignore |
||
40 | { |
||
41 | return $this->hasMany(Assessment::class); |
||
1 ignored issue
–
show
|
|||
42 | } |
||
43 | |||
44 | public function assessment_type_translations() |
||
47 | } |
||
48 | } |
||
49 |