1 | <?php |
||
12 | class CampaignSend extends Model |
||
13 | { |
||
14 | use HasUuid; |
||
15 | |||
16 | public $table = 'email_campaign_sends'; |
||
17 | |||
18 | public $guarded = []; |
||
19 | |||
20 | public $dates = ['sent_at']; |
||
21 | |||
22 | public static function findByTransportMessageId(string $transportMessageId): ?Model |
||
26 | |||
27 | public function subscription(): BelongsTo |
||
31 | |||
32 | public function campaign(): BelongsTo |
||
36 | |||
37 | public function bounces(): HasMany |
||
41 | |||
42 | public function markAsBounced(string $severity) |
||
52 | |||
53 | public function markAsSent() |
||
61 | |||
62 | public function wasAlreadySent(): bool |
||
66 | } |
||
67 |