| Total Complexity | 2 |
| Total Lines | 42 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | ======= |
||
| 10 | use ModularSoftware\LaravelGedcom\Observers\EventActionsObserver; |
||
| 11 | use LaravelEnso\Tables\Traits\TableCache; |
||
| 12 | >>>>>>> parent of a7f00d69... Revert "Merge remote-tracking branch 'origin/master' into jyyblue" |
||
| 13 | |||
| 14 | class PersonEvent extends Event |
||
| 15 | { |
||
| 16 | use TableCache; |
||
| 17 | use SoftDeletes; |
||
| 18 | |||
| 19 | protected $dates = ['deleted_at']; |
||
| 20 | |||
| 21 | protected $table = 'person_events'; |
||
| 22 | |||
| 23 | protected $fillable = [ |
||
| 24 | 'person_id', |
||
| 25 | 'title', |
||
| 26 | 'type', |
||
| 27 | 'attr', |
||
| 28 | 'date', |
||
| 29 | 'plac', |
||
| 30 | 'phon', |
||
| 31 | 'caus', |
||
| 32 | 'age', |
||
| 33 | 'agnc', |
||
| 34 | 'places_id', |
||
| 35 | 'description', |
||
| 36 | 'year', |
||
| 37 | 'month', |
||
| 38 | 'day', |
||
| 39 | ]; |
||
| 40 | |||
| 41 | protected $gedcom_event_names = [ |
||
| 42 | 'BIRT' => 'Birth', |
||
| 43 | 'DEAT' => 'Death', |
||
| 44 | ]; |
||
| 45 | |||
| 46 | public static function boot() |
||
| 47 | { |
||
| 48 | parent::boot(); |
||
| 49 | |||
| 50 | self::observe(new EventActionsObserver); |
||
| 51 | } |
||
| 58 |