Passed
Pull Request — dev (#313)
by Tristan
06:51
created

Applicant   A

Complexity

Total Complexity 9

Size/Duplication

Total Lines 46
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 9
eloc 17
dl 0
loc 46
ccs 0
cts 18
cp 0
rs 10
c 0
b 0
f 0

9 Methods

Rating   Name   Duplication   Size   Complexity  
A work_samples() 0 2 1
A degrees() 0 2 1
A work_experiences() 0 2 1
A references() 0 2 1
A applicant_profile_answers() 0 2 1
A job_applications() 0 2 1
A user() 0 2 1
A courses() 0 2 1
A skill_declarations() 0 2 1
1
<?php
2
3
/**
4
 * Created by Reliese Model.
5
 * Date: Thu, 12 Jul 2018 22:39:27 +0000.
6
 */
0 ignored issues
show
Coding Style introduced by
Missing @link tag in file comment
Loading history...
Coding Style introduced by
Missing @category tag in file comment
Loading history...
Coding Style introduced by
Missing @author tag in file comment
Loading history...
Coding Style introduced by
PHP version not specified
Loading history...
Coding Style introduced by
Missing @package tag in file comment
Loading history...
Coding Style introduced by
Missing @license tag in file comment
Loading history...
7
8
namespace App\Models;
9
use App\Models\WorkSample;
10
11
/**
12
 * Class Applicant
13
 *
14
 * @property int $id
15
 * @property string $personal_website
16
 * @property string $tagline
17
 * @property string $twitter_username
18
 * @property string $linkedin_url
19
 * @property int $user_ids
20
 * @property \Jenssegers\Date\Date $created_at
21
 * @property \Jenssegers\Date\Date $updated_at
22
 *
23
 * @property \App\Models\User $user
24
 * @property \Illuminate\Database\Eloquent\Collection $applicant_profile_answers
25
 * @property \Illuminate\Database\Eloquent\Collection $job_applications
26
 * @property \Illuminate\Database\Eloquent\Collection $degrees
27
 * @property \Illuminate\Database\Eloquent\Collection $courses
28
 * @property \Illuminate\Database\Eloquent\Collection $work_experiences
29
 * @property \Illuminate\Database\Eloquent\Collection $skill_declarations
30
 * @property \Illuminate\Database\Eloquent\Collection $references
31
 * @property \Illuminate\Database\Eloquent\Collection $work_samples
32
 */
0 ignored issues
show
Coding Style introduced by
Missing @category tag in class comment
Loading history...
Coding Style introduced by
Missing @package tag in class comment
Loading history...
Coding Style introduced by
Missing @author tag in class comment
Loading history...
Coding Style introduced by
Missing @license tag in class comment
Loading history...
Coding Style introduced by
Missing @link tag in class comment
Loading history...
33
class Applicant extends BaseModel {
0 ignored issues
show
Coding Style introduced by
Opening brace of a class must be on the line after the definition
Loading history...
34
35
    protected $casts = [
36
        'user_id' => 'int'
37
    ];
38
    protected $fillable = [
39
        'personal_website',
40
        'tagline',
41
        'twitter_username',
42
        'linkedin_url'
43
    ];
44
45
    public function user() {
0 ignored issues
show
Coding Style introduced by
Missing doc comment for function user()
Loading history...
Coding Style introduced by
Opening brace should be on a new line
Loading history...
46
        return $this->belongsTo(\App\Models\User::class);
47
    }
48
49
    public function applicant_profile_answers() {
0 ignored issues
show
Coding Style introduced by
Public method name "Applicant::applicant_profile_answers" is not in camel caps format
Loading history...
Coding Style introduced by
Missing doc comment for function applicant_profile_answers()
Loading history...
Coding Style introduced by
Opening brace should be on a new line
Loading history...
50
        return $this->hasMany(\App\Models\ApplicantProfileAnswer::class);
51
    }
52
53
    public function job_applications() {
0 ignored issues
show
Coding Style introduced by
Public method name "Applicant::job_applications" is not in camel caps format
Loading history...
Coding Style introduced by
Missing doc comment for function job_applications()
Loading history...
Coding Style introduced by
Opening brace should be on a new line
Loading history...
54
        return $this->hasMany(\App\Models\JobApplication::class);
55
    }
56
57
    public function degrees() {
0 ignored issues
show
Coding Style introduced by
Missing doc comment for function degrees()
Loading history...
Coding Style introduced by
Opening brace should be on a new line
Loading history...
58
        return $this->hasMany(\App\Models\Degree::class);
59
    }
60
61
    public function courses() {
0 ignored issues
show
Coding Style introduced by
Missing doc comment for function courses()
Loading history...
Coding Style introduced by
Opening brace should be on a new line
Loading history...
62
        return $this->hasMany(\App\Models\Course::class);
63
    }
64
65
    public function work_experiences() {
0 ignored issues
show
Coding Style introduced by
Public method name "Applicant::work_experiences" is not in camel caps format
Loading history...
Coding Style introduced by
Missing doc comment for function work_experiences()
Loading history...
Coding Style introduced by
Opening brace should be on a new line
Loading history...
66
        return $this->hasMany(\App\Models\WorkExperience::class);
67
    }
68
69
    public function skill_declarations() {
0 ignored issues
show
Coding Style introduced by
Public method name "Applicant::skill_declarations" is not in camel caps format
Loading history...
Coding Style introduced by
Missing doc comment for function skill_declarations()
Loading history...
Coding Style introduced by
Opening brace should be on a new line
Loading history...
70
        return $this->hasMany(\App\Models\SkillDeclaration::class);
71
    }
72
73
    public function references() {
0 ignored issues
show
Coding Style introduced by
Missing doc comment for function references()
Loading history...
Coding Style introduced by
Opening brace should be on a new line
Loading history...
74
        return $this->hasMany(\App\Models\Reference::class);
75
    }
76
77
    public function work_samples() {
0 ignored issues
show
Coding Style introduced by
Public method name "Applicant::work_samples" is not in camel caps format
Loading history...
Coding Style introduced by
Missing doc comment for function work_samples()
Loading history...
Coding Style introduced by
Opening brace should be on a new line
Loading history...
78
        return $this->hasMany(\App\Models\WorkSample::class);
79
    }
80
}
81