Completed
Branch master (a6481d)
by Fèvre
02:09
created

Account   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A user() 0 4 1
1
<?php
2
namespace Xetaravel\Models;
3
4
class Account extends Model
5
{
6
    /**
7
     * The attributes that are mass assignable.
8
     *
9
     * @var array
10
     */
11
    protected $fillable = [
12
        'user_id',
13
        'first_name',
14
        'last_name',
15
        'biography',
16
        'signature',
17
        'facebook',
18
        'twitter'
19
    ];
20
21
    /**
22
     * Get the user that owns the account.
23
     *
24
     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
25
     */
26
    public function user()
27
    {
28
        return $this->belongsTo('Xetaravel\Models\User');
29
    }
30
}
31