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

Content::revisions()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 2
c 1
b 0
f 1
nc 1
nop 0
dl 0
loc 4
ccs 0
cts 2
cp 0
crap 2
rs 10
1
<?php namespace Rocket\Entities;
2
3
use Illuminate\Database\Eloquent\Model;
4
5
/**
6
 * Represent a Content
7
 *
8
 * @property int $id The field id
9
 * @property-read \DateTime $created_at
10
 * @property-read \DateTime $updated_at
11
 */
12
class Content extends Model
13
{
14
    public $table = 'contents';
15
16
    /**
17
     * Get the revisions for this class
18
     */
19
    public function revisions()
20
    {
21
        return $this->hasMany(Revision::class);
22
    }
23
}
24