StripeAccount   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 48
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 48
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\Containers\Stripe\Models;
4
5
use App\Containers\User\Models\User;
6
use App\Ship\Parents\Models\Model;
7
use Illuminate\Database\Eloquent\SoftDeletes;
8
9
/**
10
 * Class StripeAccount.
11
 *
12
 * @author Mahmoud Zalt <[email protected]>
13
 */
14
class StripeAccount extends Model
15
{
16
    use SoftDeletes;
17
18
    /**
19
     * The attributes that are mass assignable.
20
     *
21
     * @var array
22
     */
23
    protected $fillable = [
24
        'customer_id',
25
        'card_id',
26
        'card_funding',
27
        'card_last_digits',
28
        'card_fingerprint',
29
        'user_id',
30
    ];
31
32
    /**
33
     * The dates attributes.
34
     *
35
     * @var array
36
     */
37
    protected $dates = [
38
        'created_at',
39
        'updated_at',
40
        'deleted_at',
41
    ];
42
43
    /**
44
     * The attributes excluded from the model's JSON form.
45
     *
46
     * @var array
47
     */
48
    protected $hidden = [
49
50
    ];
51
52
    /**
53
     * StripeAccount relationship with User
54
     *
55
     * @return  \Illuminate\Database\Eloquent\Relations\BelongsTo
56
     */
57
    public function user()
58
    {
59
        return $this->belongsTo(User::class);
60
    }
61
}
62