Conditions | 3 |
Paths | 4 |
Total Lines | 19 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
26 | public static function convert(\PhpGedcom\Record\Head\Gedc &$gedc, $level) |
||
27 | { |
||
28 | $output = $level." GEDC \n"; |
||
29 | |||
30 | // level up |
||
31 | $level++; |
||
32 | // VERS |
||
33 | $vers = $gedc->getVersion(); |
||
34 | if ($vers) { |
||
35 | $output .= $level.' VERS '.$vers."\n"; |
||
36 | } |
||
37 | |||
38 | // FORM |
||
39 | $form = $gedc->getForm(); |
||
40 | if ($form) { |
||
41 | $output .= $level.' FORM '.$form."\n"; |
||
42 | } |
||
43 | |||
44 | return $output; |
||
45 | } |
||
47 |