Completed
Branch master (f1d822)
by tac
03:30 queued 01:02
created

Comment   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 14
rs 10
c 1
b 0
f 0
1
<?php
2
namespace Tacone\Bees\Demo\Models;
3
4
/**
5
 * Comment
6
 */
7
class Comment extends \Eloquent
8
{
9
    protected $table = 'demo_comments';
10
11
    public function article()
12
    {
13
        return $this->belongsTo('\Tacone\Bees\Demo\Models\Article', 'article_id');
14
    }
15
16
    public function author()
17
    {
18
        return $this->belongsTo('\Tacone\Bees\Demo\Models\Author', 'author_id');
19
    }
20
}
21