Completed
Push — develop ( f34a65...a0b033 )
by Abdelrahman
02:30
created

EloquentUser   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A posts() 0 4 1
1
<?php
2
3
namespace Rinvex\Tests\Stubs;
4
5
class EloquentUser extends \Illuminate\Database\Eloquent\Model
6
{
7
    protected $table    = 'users';
8
    protected $fillable = ['name', 'email'];
9
10
    public function posts()
11
    {
12
        return $this->hasMany(EloquentPost::class, 'user_id');
13
    }
14
}
15