Translation   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 26
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
3
namespace MikeZange\LaravelDatabaseTranslation\Models;
4
5
use Illuminate\Database\Eloquent\Model;
6
use MikeZange\LaravelDatabaseTranslation\Translatable;
7
8
/**
9
 * Class Translation.
10
 */
11
class Translation extends Model
12
{
13
    use Translatable;
14
15
    protected $table;
16
17
    /**
18
     *  List of variables that can be mass assigned.
19
     *
20
     *  @var array
21
     */
22
    protected $fillable = ['namespace', 'group', 'key', 'values'];
23
24
    public $translatable = ['values'];
25
26
    /**
27
     * Translation constructor.
28
     *
29
     * @param array $attributes
30
     */
31
    public function __construct(array $attributes = [])
32
    {
33
        $this->table = config('database.translations.table');
34
        parent::__construct($attributes);
35
    }
36
}
37