| Conditions | 3 |
| Paths | 3 |
| Total Lines | 19 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | public static function convert(\PhpGedcom\Record\Refn &$refn, $level) |
||
| 28 | { |
||
| 29 | |||
| 30 | $output = ""; |
||
| 31 | $_refn = $refn->getRefn(); |
||
| 32 | if(empty($_refn)){ |
||
| 33 | return $output; |
||
| 34 | }else{ |
||
| 35 | $output.=$level." REFN ".$_refn."\n"; |
||
| 36 | } |
||
| 37 | // level up |
||
| 38 | $level++; |
||
| 39 | // DATE |
||
| 40 | $type = $refn->getType(); |
||
| 41 | if(!empty($type)){ |
||
| 42 | $output.=$level." TYPE ".$type."\n"; |
||
| 43 | } |
||
| 44 | |||
| 45 | return $output; |
||
| 46 | } |
||
| 48 |