Passed
Push — feature/screening-plan ( d2d4c1...ee7849 )
by Tristan
15:10
created

AssessmentTypeTranslation   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 9
dl 0
loc 14
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A assessment_type() 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
PHP version not specified
Loading history...
Coding Style introduced by
Missing @category tag in file comment
Loading history...
Coding Style introduced by
Missing @package tag in file comment
Loading history...
Coding Style introduced by
Missing @author tag in file comment
Loading history...
Coding Style introduced by
Missing @license tag in file comment
Loading history...
Coding Style introduced by
Missing @link tag in file comment
Loading history...
7
8
namespace App\Models\Lookup;
9
10
use App\Models\BaseModel;
11
12
/**
13
 * Class AssessmentTypeTranslation
14
 *
15
 * @property int $id
16
 * @property int $assessment_type_id
17
 * @property string $locale
18
 * @property string $name
19
 * @property \Jenssegers\Date\Date $created_at
20
 * @property \Jenssegers\Date\Date $updated_at
21
 *
22
 * @property \App\Models\Lookup\AssessmentType $assessment_type
23
 */
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...
24
class AssessmentTypeTranslation 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...
25
26
    protected $casts = [
27
        'id' => 'int',
28
        'assessment_type_id' => 'int',
29
        'locale' => 'string',
30
        'name' => 'string',
31
    ];
32
    protected $fillable = [
33
        'name',
34
    ];
35
36
    public function assessment_type() {
0 ignored issues
show
Coding Style introduced by
Missing doc comment for function assessment_type()
Loading history...
Coding Style introduced by
Public method name "AssessmentTypeTranslation::assessment_type" is not in camel caps format
Loading history...
37
        return $this->belongsTo(\App\Models\Lookup\AssessmentType::class);
38
    }
39
40
}
41