Total Complexity | 2 |
Total Lines | 42 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
9 | class PersonEvent extends Event |
||
10 | { |
||
11 | use TableCache; |
||
12 | use SoftDeletes; |
||
13 | |||
14 | protected $dates = ['deleted_at']; |
||
15 | |||
16 | protected $table = 'person_events'; |
||
17 | |||
18 | protected $fillable = [ |
||
19 | 'person_id', |
||
20 | 'title', |
||
21 | 'type', |
||
22 | 'attr', |
||
23 | 'date', |
||
24 | 'plac', |
||
25 | 'phon', |
||
26 | 'caus', |
||
27 | 'age', |
||
28 | 'agnc', |
||
29 | 'places_id', |
||
30 | 'description', |
||
31 | 'year', |
||
32 | 'month', |
||
33 | 'day', |
||
34 | ]; |
||
35 | |||
36 | protected $gedcom_event_names = [ |
||
37 | 'BIRT' => 'Birth', |
||
38 | 'DEAT' => 'Death', |
||
39 | ]; |
||
40 | |||
41 | public static function boot() |
||
46 | } |
||
47 | |||
48 | public function person() |
||
53 |