Account   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 10
dl 0
loc 25
rs 10
c 1
b 0
f 0
wmc 1

1 Method

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