ContentTypeString   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 9
c 1
b 0
f 0
dl 0
loc 23
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A linkable() 0 3 1
1
<?php
2
3
namespace mindtwo\LaravelMultilingual\Models;
4
5
use Illuminate\Database\Eloquent\Model;
6
use Illuminate\Database\Eloquent\SoftDeletes;
7
use mindtwo\LaravelMultilingual\Models\Traits\TranslationCalls;
8
9
class ContentTypeString extends Model
10
{
11
    use SoftDeletes,
0 ignored issues
show
introduced by
The trait mindtwo\LaravelMultiling...Traits\TranslationCalls requires some properties which are not provided by mindtwo\LaravelMultiling...odels\ContentTypeString: $value, $group, $key, $locale
Loading history...
12
        TranslationCalls;
13
14
    /**
15
     * The attributes that are mass assignable.
16
     *
17
     * @var array
18
     */
19
    protected $fillable = [
20
        'locale',
21
        'group',
22
        'key',
23
        'value',
24
    ];
25
26
    /**
27
     * Get all of the owning linkable models.
28
     */
29
    public function linkable()
30
    {
31
        return $this->morphTo();
32
    }
33
}
34