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