MemberToken   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 39
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A member() 0 4 1
1
<?php
2
3
namespace App;
4
5
use Illuminate\Database\Eloquent\Model;
6
7
class MemberToken extends Model
8
{
9
    /**
10
     * @var null
11
     */
12
    protected $primaryKey;
13
14
    /**
15
     * @var bool
16
     */
17
    public $incrementing = false;
18
19
    /**
20
     * The database table used by the model.
21
     *
22
     * @var string
23
     */
24
    protected $table = 'member_tokens';
25
26
    /**
27
     * @var bool
28
     */
29
    public $timestamps = true;
30
31
    /**
32
     * The attributes that are mass assignable.
33
     *
34
     * @var array
35
     */
36
    protected $fillable = ['memberId', 'accessToken', 'sessionId'];
37
38
    /**
39
     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
40
     */
41
    public function member()
42
    {
43
        return $this->belongsTo(Member::class, 'memberId');
44
    }
45
}
46