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

EloquentPost   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
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 10
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
}