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

ExperienceLevel::micro_references()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 2
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
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\Lookup;
9
10
use App\Models\BaseModel;
11
12
/**
13
 * Class ExperienceLevel
14
 *
15
 * @property int $id
16
 * @property string $name
17
 * @property \Jenssegers\Date\Date $created_at
18
 * @property \Jenssegers\Date\Date $updated_at
19
 *
20
 * @property \Illuminate\Database\Eloquent\Collection $experience_level_translations
21
 * @property \Illuminate\Database\Eloquent\Collection $skill_declarations
22
 *
23
 * Localized Properties:
24
 * @property string $value
25
 */
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...
26
class ExperienceLevel 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...
27
28
    use \Dimsav\Translatable\Translatable;
0 ignored issues
show
introduced by
The trait Dimsav\Translatable\Translatable requires some properties which are not provided by App\Models\Lookup\ExperienceLevel: $translations, $useTranslationFallback, $translationModel, $localeKey, $translationForeignKey
Loading history...
29
30
    public $translatedAttributes = ['value'];
31
    protected $fillable = [];
32
33
    public function experience_level_translations() {
0 ignored issues
show
Coding Style introduced by
Public method name "ExperienceLevel::experience_level_translations" is not in camel caps format
Loading history...
Coding Style introduced by
Missing doc comment for function experience_level_translations()
Loading history...
Coding Style introduced by
Opening brace should be on a new line
Loading history...
34
        return $this->hasMany(\App\Models\Lookup\ExperienceLevelTranslation::class);
35
    }
36
37
    public function skill_declarations() {
0 ignored issues
show
Coding Style introduced by
Public method name "ExperienceLevel::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...
38
        return $this->hasMany(\App\Models\SkillDeclaration::class);
39
    }
40
41
}
42