1 | <?php |
||
11 | class EloquentStoredEvent extends Model |
||
12 | { |
||
13 | public $guarded = []; |
||
14 | |||
15 | public $timestamps = false; |
||
16 | |||
17 | protected $table = 'stored_events'; |
||
18 | |||
19 | public $casts = [ |
||
20 | 'event_properties' => 'array', |
||
21 | 'meta_data' => 'array', |
||
22 | ]; |
||
23 | |||
24 | public function toStoredEvent(): StoredEvent |
||
35 | |||
36 | public function getEventAttribute(): ShouldBeStored |
||
40 | |||
41 | public function getMetaDataAttribute(): SchemalessAttributes |
||
45 | |||
46 | public function scopeWithMetaDataAttributes(): Builder |
||
50 | |||
51 | public function scopeStartingFrom(Builder $query, int $storedEventId): void |
||
55 | |||
56 | public function scopeUuid(Builder $query, string $uuid): void |
||
60 | } |
||
61 |