User   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 63
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A stripeAccount() 0 4 1
1
<?php
2
3
namespace App\Containers\User\Models;
4
5
use App\Containers\Stripe\Models\StripeAccount;
6
use App\Ship\Parents\Models\UserModel;
7
8
/**
9
 * Class User.
10
 *
11
 * @author Mahmoud Zalt <[email protected]>
12
 */
13
class User extends UserModel
14
{
15
16
    /**
17
     * The database table used by the model.
18
     *
19
     * @var string
20
     */
21
    protected $table = 'users';
22
23
    /**
24
     * The attributes that are mass assignable.
25
     *
26
     * @var array
27
     */
28
    protected $fillable = [
29
        'name',
30
        'email',
31
        'password',
32
        'device',
33
        'platform',
34
        'confirmed',
35
        'gender',
36
        'birth',
37
        'social_provider',
38
        'social_token',
39
        'social_refresh_token',
40
        'social_expires_in',
41
        'social_token_secret',
42
        'social_id',
43
        'social_avatar',
44
        'social_avatar_original',
45
        'social_nickname',
46
    ];
47
48
    /**
49
     * The dates attributes.
50
     *
51
     * @var array
52
     */
53
    protected $dates = [
54
        'created_at',
55
        'updated_at',
56
        'deleted_at',
57
    ];
58
59
    /**
60
     * The attributes excluded from the model's JSON form.
61
     *
62
     * @var array
63
     */
64
    protected $hidden = [
65
        'password',
66
        'remember_token',
67
        'token',
68
    ];
69
70
    public function stripeAccount()
71
    {
72
        return $this->hasOne(StripeAccount::class);
73
    }
74
75
}
76