| Total Complexity | 1 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | final class Campaign extends Model |
||
| 28 | { |
||
| 29 | use SoftDeletes; |
||
| 30 | |||
| 31 | /** @var array The attributes that should be mutated to dates */ |
||
| 32 | protected $dates = [ |
||
| 33 | 'started_at', |
||
| 34 | 'finished_at', |
||
| 35 | 'created_at', |
||
| 36 | 'updated_at', |
||
| 37 | 'deleted_at', |
||
| 38 | ]; |
||
| 39 | |||
| 40 | /** @var array The attributes that should be cast to native types */ |
||
| 41 | protected $casts = [ |
||
| 42 | 'active_status' => 'bool', |
||
| 43 | ]; |
||
| 44 | |||
| 45 | /** @var array Default attribute values */ |
||
| 46 | protected $attributes = [ |
||
| 47 | 'active_status' => false, |
||
| 48 | ]; |
||
| 49 | |||
| 50 | public function translations(): HasMany |
||
| 55 |