| Total Complexity | 1 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | class LikeCounter extends Model implements LikeCounterContract |
||
| 12 | { |
||
| 13 | protected $table = 'like_counters'; |
||
| 14 | protected $fillable = [ |
||
| 15 | 'type_id', |
||
| 16 | 'count', |
||
| 17 | ]; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * The attributes that should be cast to native types. |
||
| 21 | * |
||
| 22 | * @var array |
||
| 23 | */ |
||
| 24 | protected $casts = [ |
||
| 25 | 'count' => 'integer', |
||
| 26 | ]; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Likeable model relation. |
||
| 30 | * |
||
| 31 | * @return \Illuminate\Database\Eloquent\Relations\MorphTo |
||
| 32 | */ |
||
| 33 | public function likeable() |
||
| 38 |