Passed
Branch master (6a7148)
by Curtis
01:48
created

Birt::parseFamc()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
eloc 3
nc 2
nop 2
dl 0
loc 5
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * php-gedcom
4
 *
5
 * php-gedcom is a library for parsing, manipulating, importing and exporting
6
 * GEDCOM 5.5 files in PHP 5.3+.
7
 *
8
 * @author          Kristopher Wilson <[email protected]>
9
 * @copyright       Copyright (c) 2010-2013, Kristopher Wilson
10
 * @package         php-gedcom
11
 * @license         MIT
12
 * @link            http://github.com/mrkrstphr/php-gedcom
13
 */
14
15
namespace PhpGedcom\Parser\Indi;
16
17
/**
18
 *
19
 *
20
 */
21
class Birt extends \PhpGedcom\Parser\Indi\Even
22
{
23
    public static function parseFamc($parser, $even)
24
    {
25
        $record = $parser->getCurrentLineRecord();
26
        if(isset($record[2]))
27
          $even->setFamc(trim($record[2]));
28
    }
29
}
30