Test Setup Failed
Pull Request — master (#9)
by alexfloppy
07:20
created

Activation   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 18
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A user() 0 4 1
1
<?php
2
3
namespace App\Models;
4
5
use Eloquent;
6
use Illuminate\Database\Eloquent\Model;
7
8
/**
9
 * Class Activation
10
 * @package App\Models
11
 * @mixin Eloquent
12
 */
13
class Activation extends Model
14
{
15
    public $table = 'user_activation';
16
17
    /**
18
     * The attributes that are mass assignable.
19
     *
20
     * @var array
21
     */
22
    protected $fillable = [
23
        'token', 'expired', 'user_id'
24
    ];
25
26
    public function user()
27
    {
28
        return $this->belongsTo(User::class);
29
    }
30
}
31