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

EloquentPost   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 user() 0 4 1
1
<?php
2
3
namespace Rinvex\Tests\Stubs;
4
5
class EloquentPost extends \Illuminate\Database\Eloquent\Model
6
{
7
    protected $table    = 'posts';
8
    protected $fillable = ['user_id', 'parent_id', 'name'];
9
10
    public function user()
11
    {
12
        $this->belongsTo(EloquentUser::class);
13
    }
14
}
15