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

JobApplication   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 6
eloc 12
dl 0
loc 31
ccs 0
cts 12
cp 0
rs 10
c 0
b 0
f 0

6 Methods

Rating   Name   Duplication   Size   Complexity  
A job_poster() 0 2 1
A application_work_samples() 0 2 1
A applicant() 0 2 1
A application_status() 0 2 1
A job_application_answers() 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
10
/**
11
 * Class JobApplication
12
 *
13
 * @property int $id
14
 * @property int $job_poster_id
15
 * @property int $application_status_id
16
 * @property int $applicant_id
17
 * @property \Jenssegers\Date\Date $created_at
18
 * @property \Jenssegers\Date\Date $updated_at
19
 *
20
 * @property \App\Models\Applicant $applicant
21
 * @property \App\Models\Lookup\ApplicationStatus $application_status
22
 * @property \App\Models\JobPoster $job_poster
23
 * @property \Illuminate\Database\Eloquent\Collection $application_work_samples
24
 * @property \Illuminate\Database\Eloquent\Collection $job_application_answers
25
 * @property \Illuminate\Database\Eloquent\Collection $skill_declarations
26
 */
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...
27
class JobApplication 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...
28
29
    protected $casts = [
30
        'job_poster_id' => 'int',
31
        'application_status_id' => 'int',
32
        'applicant_id' => 'int'
33
    ];
34
    protected $fillable = [];
35
36
    public function applicant() {
0 ignored issues
show
Coding Style introduced by
Missing doc comment for function applicant()
Loading history...
Coding Style introduced by
Opening brace should be on a new line
Loading history...
37
        return $this->belongsTo(\App\Models\Applicant::class);
38
    }
39
40
    public function application_status() {
0 ignored issues
show
Coding Style introduced by
Public method name "JobApplication::application_status" is not in camel caps format
Loading history...
Coding Style introduced by
Missing doc comment for function application_status()
Loading history...
Coding Style introduced by
Opening brace should be on a new line
Loading history...
41
        return $this->belongsTo(\App\Models\Lookup\ApplicationStatus::class);
42
    }
43
44
    public function job_poster() {
0 ignored issues
show
Coding Style introduced by
Public method name "JobApplication::job_poster" is not in camel caps format
Loading history...
Coding Style introduced by
Missing doc comment for function job_poster()
Loading history...
Coding Style introduced by
Opening brace should be on a new line
Loading history...
45
        return $this->belongsTo(\App\Models\JobPoster::class);
46
    }
47
48
    public function application_work_samples() {
0 ignored issues
show
Coding Style introduced by
Public method name "JobApplication::application_work_samples" is not in camel caps format
Loading history...
Coding Style introduced by
Missing doc comment for function application_work_samples()
Loading history...
Coding Style introduced by
Opening brace should be on a new line
Loading history...
49
        return $this->hasMany(\App\Models\ApplicationWorkSample::class);
50
    }
51
52
    public function job_application_answers() {
0 ignored issues
show
Coding Style introduced by
Public method name "JobApplication::job_application_answers" is not in camel caps format
Loading history...
Coding Style introduced by
Missing doc comment for function job_application_answers()
Loading history...
Coding Style introduced by
Opening brace should be on a new line
Loading history...
53
        return $this->hasMany(\App\Models\JobApplicationAnswer::class);
54
    }
55
56
    public function skill_declarations() {
0 ignored issues
show
Coding Style introduced by
Public method name "JobApplication::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...
57
        return $this->hasMany(\App\Models\SkillDeclaration::class);
58
    }
59
60
}
61