Completed
Push — master ( dbf93a...f52fd4 )
by Nicolas
03:57
created

TranslationTranslation::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 5
rs 9.4286
cc 1
eloc 3
nc 1
nop 1
1
<?php namespace Modules\Translation\Entities;
2
3
use Illuminate\Database\Eloquent\Model;
4
use Venturecraft\Revisionable\RevisionableTrait;
5
6
/**
7
 * @property string value
8
 */
9
class TranslationTranslation extends Model
10
{
11
    use RevisionableTrait;
12
    public $timestamps = false;
13
    protected $fillable = ['value'];
14
    protected $table = 'translation__translation_translations';
15
16
    protected $revisionEnabled = true;
17
    protected $revisionCleanup = true;
18
    protected $historyLimit = 100;
19
    protected $revisionCreationsEnabled = true;
20
21
    public function __construct(array $attributes = [])
22
    {
23
        parent::__construct($attributes);
24
        $this->historyLimit = config('asgard.translation.config.revision-history-limit', 100);
25
    }
26
27
    public static function boot()
28
    {
29
        parent::boot();
30
    }
31
}
32