Passed
Push — task/ide-helper ( 159489...25c04b )
by Grant
08:53 queued 10s
created

Classification::skills()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
c 0
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
namespace App\Models;
4
5
use Backpack\CRUD\app\Models\Traits\CrudTrait;
6
7
/**
8
 * Class UserRole.
9
 *
10
 * @property int $id
11
 * @property string $key
12
 * @property \Jenssegers\Date\Date $created_at
13
 * @property \Jenssegers\Date\Date $updated_at
14
 * @property \Illuminate\Database\Eloquent\Collection $skills
15
 * @property \Illuminate\Database\Eloquent\Collection $job_posters
16
 */
17
class Classification extends BaseModel
18
{
19
    use CrudTrait;
0 ignored issues
show
introduced by
The trait Backpack\CRUD\app\Models\Traits\CrudTrait requires some properties which are not provided by App\Models\Classification: $Type, $fakeColumns
Loading history...
20
21
    /**
22
     * @var string
23
     */
24
    protected $fillable = [
25
        'key'
26
    ];
27
28
    public function skills()
2 ignored issues
show
Coding Style Documentation introduced by
Missing doc comment for function skills()
Loading history...
introduced by
Method \App\Models\Classification::skills() does not have return type hint nor @return annotation for its return value.
Loading history...
29
    {
30
        return $this->belongsToMany(\App\Models\Skill::class)->withTimestamps();
31
    }
32
33
    public function job_posters() //phpcs:ignore
34
    {
35
        return $this->belongsToMany(\App\Models\JobPoster::class);
36
    }
37
}
38