Passed
Branch master (3ea22d)
by Fariz
03:08
created

Comment   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 2
dl 0
loc 8
rs 10
c 2
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A comments() 0 3 1
1
<?php
2
/**
3
 * StupidlySimple - A PHP Framework For Lazy Developers.
4
 *
5
 * @author		Fariz Luqman <[email protected]>
6
 * @copyright	2017 Fariz Luqman
7
 * @license		MIT
8
 *
9
 * @link		https://stupidlysimple.github.io/
10
 */
11
12
namespace Model;
13
14
use Illuminate\Database\Eloquent\Model as Eloquent;
15
16
class Comment extends Eloquent
17
{
18
    /**
19
     * Get the post for the comment.
20
     */
21
    public function comments()
22
    {
23
        return $this->belongsTo('Model\Post', 'user_id');
24
    }
25
}
26