MemberToken::member()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 4
rs 10
c 1
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
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