Completed
Push — master ( bf4c92...3d0f9a )
by Alex
04:55
created

User   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 1
c 2
b 0
f 0
lcom 0
cbo 1
dl 0
loc 30
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getCalculations() 0 4 1
1
<?php
2
3
namespace App;
4
5
use Illuminate\Foundation\Auth\User as Authenticatable;
6
7
/**
8
 * Class User
9
 * @package App
10
 */
11
class User extends Authenticatable
12
{
13
    /**
14
     * The attributes that are mass assignable.
15
     *
16
     * @var array
17
     */
18
    protected $fillable = [
19
        'name', 'email', 'password',
20
    ];
21
22
    /**
23
     * The attributes that should be hidden for arrays.
24
     *
25
     * @var array
26
     */
27
    protected $hidden = [
28
        'password', 'remember_token',
29
    ];
30
31
32
    /**
33
     * @return \Illuminate\Database\Eloquent\Relations\HasMany
34
     */
35
    public function getCalculations()
36
    {
37
        return $this->hasMany(SimulatorHistory::class);
38
    }
39
40
}
41