| Total Complexity | 3 |
| Total Lines | 41 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | class RatingGuideQuestion extends BaseModel |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * The columns that can be filled with mass-assignment |
||
| 23 | * |
||
| 24 | * @var string[] |
||
| 25 | */ |
||
| 26 | protected $fillable = [ |
||
| 27 | 'job_poster_id', |
||
| 28 | 'assessment_type_id', |
||
| 29 | 'question' |
||
| 30 | ]; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Get the JobPoster relation. |
||
| 34 | * |
||
| 35 | * @return \Illuminate\Database\Eloquent\Relations\BelongsTo |
||
| 36 | */ |
||
| 37 | public function job_poster(): \Illuminate\Database\Eloquent\Relations\BelongsTo |
||
|
|
|||
| 38 | { |
||
| 39 | return $this->belongsTo(\App\Models\JobPoster::class); |
||
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * Get the AssessmentType relation. |
||
| 44 | * |
||
| 45 | * @return \Illuminate\Database\Eloquent\Relations\BelongsTo |
||
| 46 | */ |
||
| 47 | public function assessment_type(): \Illuminate\Database\Eloquent\Relations\BelongsTo |
||
| 48 | { |
||
| 49 | return $this->belongsTo(\App\Models\Lookup\AssessmentType::class); |
||
| 50 | } |
||
| 51 | |||
| 52 | /** |
||
| 53 | * Get the RatingGuideAnswers relation. |
||
| 54 | * |
||
| 55 | * @return \Illuminate\Database\Eloquent\Relations\HasMany |
||
| 56 | */ |
||
| 57 | public function rating_guide_answers(): \Illuminate\Database\Eloquent\Relations\HasMany |
||
| 60 | } |
||
| 61 | } |
||
| 62 |