Total Complexity | 3 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
7 | class Feature extends BaseModel |
||
8 | { |
||
9 | protected $fillable = [ |
||
10 | 'featured_id', |
||
11 | 'featured_type', |
||
12 | 'position', |
||
13 | 'bucket_key', |
||
14 | 'starred', |
||
15 | ]; |
||
16 | |||
17 | public function featured() |
||
18 | { |
||
19 | return $this->morphTo(); |
||
20 | } |
||
21 | |||
22 | public function scopeForBucket($query, $bucketKey) |
||
27 | } |
||
28 | |||
29 | public function getTable() |
||
35 |