Completed
Pull Request — develop (#76)
by
unknown
02:41
created

EloquentUser   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
c 1
b 0
f 0
dl 0
loc 11
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
}