Completed
Push — master ( 4e34cd...643d5b )
by Manel
13:04
created

Person   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 11
rs 10
c 1
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A user() 0 4 1
1
<?php
2
3
namespace Scool\EnrollmentMobile\Entities;
4
5
use Illuminate\Database\Eloquent\Model;
6
use Prettus\Repository\Contracts\Transformable;
7
use Prettus\Repository\Traits\TransformableTrait;
8
9
class Person extends Model implements Transformable
10
{
11
    use TransformableTrait;
12
13
    protected $fillable = [];
14
15
    public function user()
16
    {
17
        return $this->hasOne('Manelgavalda\EnrollmentMobileTest\User::class');
18
    }
19
}
20