Total Complexity | 2 |
Total Lines | 53 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | class EntryRelationship extends ContentfulModel |
||
18 | { |
||
19 | /** |
||
20 | * {@inheritdoc} |
||
21 | */ |
||
22 | protected $table = 'entry_relationships'; |
||
23 | |||
24 | /** |
||
25 | * {@inheritdoc} |
||
26 | */ |
||
27 | protected $primaryKey = null; |
||
28 | |||
29 | /** |
||
30 | * {@inheritdoc} |
||
31 | */ |
||
32 | public $incrementing = false; |
||
33 | |||
34 | /** |
||
35 | * {@inheritdoc} |
||
36 | */ |
||
37 | protected $fillable = [ |
||
38 | 'locale', |
||
39 | 'country', |
||
40 | 'source_contentful_id', |
||
41 | 'source_contentful_type', |
||
42 | 'related_contentful_id', |
||
43 | 'related_contentful_type', |
||
44 | 'order', |
||
45 | 'relation', |
||
46 | ]; |
||
47 | |||
48 | /** |
||
49 | * {@inheritdoc} |
||
50 | */ |
||
51 | protected $casts = [ |
||
52 | 'order' => 'integer' |
||
53 | ]; |
||
54 | |||
55 | /** |
||
56 | * Get Contentful related entry. |
||
57 | * |
||
58 | * @return mixed |
||
59 | */ |
||
60 | public function getRelatedEntry() |
||
72 |