| Conditions | 3 |
| Paths | 4 |
| Total Lines | 18 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | public static function convert(\Gedcom\Record\Sour\Data\Even &$even, $level) |
||
| 25 | { |
||
| 26 | $output = $level." EVEN\n"; |
||
| 27 | $level++; |
||
| 28 | |||
| 29 | // $date; |
||
| 30 | $date = $even->getDate(); |
||
|
|
|||
| 31 | if (!empty($date)) { |
||
| 32 | $output .= $level.' DATE '.$date."\n"; |
||
| 33 | } |
||
| 34 | |||
| 35 | // Plac |
||
| 36 | $plac = $even->getPlac(); |
||
| 37 | if (!empty($plac)) { |
||
| 38 | $output .= $level.' PLAC '.$plac."\n"; |
||
| 39 | } |
||
| 40 | |||
| 41 | return $output; |
||
| 42 | } |
||
| 44 |