| Conditions | 5 |
| Paths | 3 |
| Total Lines | 22 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | public static function convert(\PhpGedcom\Record\Indi\Fams &$fams, $level = 0) |
||
| 28 | { |
||
| 29 | $output = ''; |
||
| 30 | // NAME |
||
| 31 | $_fams = $fams->getFams(); |
||
|
|
|||
| 32 | if(empty($_fams)){ |
||
| 33 | return $output; |
||
| 34 | } |
||
| 35 | $output.= $level." FAMS @".$_fams."@\n"; |
||
| 36 | // level up |
||
| 37 | $level++; |
||
| 38 | |||
| 39 | // note |
||
| 40 | $note = $fams->getNote(); |
||
| 41 | if(!empty($note) && count($note) > 0){ |
||
| 42 | foreach($note as $item){ |
||
| 43 | $_convert = \PhpGedcom\Writer\NoteRef::convert($item, $level); |
||
| 44 | $output.=$_convert; |
||
| 45 | } |
||
| 46 | } |
||
| 47 | |||
| 48 | return $output; |
||
| 49 | } |
||
| 51 |