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