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

TranslationTranslation   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 6
Bugs 0 Features 1
Metric Value
wmc 2
c 6
b 0
f 1
lcom 0
cbo 2
dl 0
loc 23
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A boot() 0 4 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