Completed
Push — master ( 0c603e...505b06 )
by Sergi Tur
02:19
created

SocialUser::user()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
ccs 0
cts 4
cp 0
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php
2
3
namespace Acacha\LaravelSocial\Models;
4
5
use Acacha\LaravelSocial\Traits\UserModel;
6
use Illuminate\Database\Eloquent\Model;
7
8
/**
9
 * Class SocialUser.
10
 *
11
 * @package Acacha\LaravelSocial\Models
12
 */
13
class SocialUser extends Model
14
{
15
    use UserModel;
16
17
    /**
18
     * Get the user that owns the social user.
19
     */
20
    public function user()
21
    {
22
        return $this->belongsTo($this->userModel());
23
    }
24
}
25