Passed
Push — task/talent-dot-test ( 0ef1e8...074f28 )
by Grant
08:57 queued 03:14
created

Reference::skill_declarations()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 2
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
/**
4
 * Created by Reliese Model.
5
 * Date: Thu, 12 Jul 2018 22:39:27 +0000.
6
 */
7
8
namespace App\Models;
9
use App\Models\SkillDeclaration;
10
11
/**
12
 * Class Reference
13
 *
14
 * @property int $id
15
 * @property string $name
16
 * @property string $email
17
 * @property int $relationship_id
18
 * @property int $applicant_id
19
 * @property string $description
20
 * @property \Jenssegers\Date\Date $created_at
21
 * @property \Jenssegers\Date\Date $updated_at
22
 *
23
 * @property \App\Models\Lookup\Relationship $relationship
24
 * @property \App\Models\Applicant $applicant
25
 * @property \Illuminate\Database\Eloquent\Collection $projects
26
 * @property \Illuminate\Database\Eloquent\Collection $skill_declaractions
27
 */
28
class Reference extends BaseModel {
29
30
    protected $casts = [
1 ignored issue
show
introduced by
Property \App\Models\Reference::$casts does not have @var annotation.
Loading history...
Coding Style Documentation introduced by
Missing member variable doc comment
Loading history...
31
        'name' => 'string',
32
        'email' => 'string',
33
        'description' => 'string',
34
        'relationship_id' => 'int',
35
        'applicant_id' => 'int',
36
    ];
37
    protected $fillable = [
1 ignored issue
show
introduced by
Property \App\Models\Reference::$fillable does not have @var annotation.
Loading history...
Coding Style Documentation introduced by
Missing member variable doc comment
Loading history...
38
        'name',
39
        'email',
40
        'relationship_id',
41
        'description'
42
    ];
43
44
    public function relationship() {
1 ignored issue
show
introduced by
Method \App\Models\Reference::relationship() does not have return type hint nor @return annotation for its return value.
Loading history...
Coding Style Documentation introduced by
Missing doc comment for function relationship()
Loading history...
45
        return $this->belongsTo(\App\Models\Lookup\Relationship::class);
46
    }
47
48 2
    public function applicant() {
1 ignored issue
show
introduced by
Method \App\Models\Reference::applicant() does not have return type hint nor @return annotation for its return value.
Loading history...
Coding Style Documentation introduced by
Missing doc comment for function applicant()
Loading history...
49 2
        return $this->belongsTo(\App\Models\Applicant::class);
50
    }
51
52 4
    public function projects() {
1 ignored issue
show
introduced by
Method \App\Models\Reference::projects() does not have return type hint nor @return annotation for its return value.
Loading history...
Coding Style Documentation introduced by
Missing doc comment for function projects()
Loading history...
53 4
        return $this->belongsToMany(\App\Models\Project::class);
54
    }
55
56 3
    public function skill_declarations() {
1 ignored issue
show
Coding Style introduced by
Method name "Reference::skill_declarations" is not in camel caps format
Loading history...
introduced by
Method \App\Models\Reference::skill_declarations() does not have return type hint nor @return annotation for its return value.
Loading history...
Coding Style Documentation introduced by
Missing doc comment for function skill_declarations()
Loading history...
57 3
        return $this->belongsToMany(\App\Models\SkillDeclaration::class);
58
    }
59
60
}
61