| Total Complexity | 2 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 2 |
| 1 | <?php |
||
| 8 | class Notification extends Model |
||
| 9 | { |
||
| 10 | protected $table = 'notifier_notifications'; |
||
| 11 | protected $fillable = [ |
||
| 12 | 'notification_template_id', |
||
| 13 | 'user_id', |
||
| 14 | 'channel', |
||
| 15 | 'subject', |
||
| 16 | 'content', |
||
| 17 | 'data', |
||
| 18 | 'scheduled_at', |
||
| 19 | 'sent_at', |
||
| 20 | 'status', |
||
| 21 | 'error', |
||
| 22 | 'opened_at', |
||
| 23 | 'clicked_at', |
||
| 24 | 'opens_count', |
||
| 25 | 'clicks_count', |
||
| 26 | ]; |
||
| 27 | |||
| 28 | protected $casts = [ |
||
| 29 | 'data' => 'array', |
||
| 30 | 'scheduled_at' => 'datetime', |
||
| 31 | 'sent_at' => 'datetime', |
||
| 32 | 'opened_at' => 'datetime', |
||
| 33 | 'clicked_at' => 'datetime', |
||
| 34 | ]; |
||
| 35 | |||
| 36 | public function template(): BelongsTo |
||
| 39 | } |
||
| 40 | |||
| 41 | public function user(): BelongsTo |
||
| 46 |