Completed
Push — master ( 096673...3f861c )
by Stéphane
11:15
created

Revision   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 5
Bugs 1 Features 1
Metric Value
c 5
b 1
f 1
dl 0
loc 10
ccs 0
cts 2
cp 0
rs 10
wmc 1
lcom 0
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A content() 0 4 1
1
<?php namespace Rocket\Entities;
2
3
use Illuminate\Database\Eloquent\Model;
4
5
/**
6
 * A revision is the status of a content at a certain moment in time
7
 *
8
 * @property int $id The field id
9
 * @property int $language_id the language of this revision
10
 * @property int $content_id the content this revision is related to
11
 * @property-read \DateTime $created_at
12
 * @property-read \DateTime $updated_at
13
 */
14
class Revision extends Model
15
{
16
    /**
17
     * Get the revisions for this class
18
     */
19
    public function content()
20
    {
21
        return $this->belongsTo(Content::class);
22
    }
23
}
24