/** * @param string $gedcom * * @return HeaderIdentity */ public function fromGedcom(GedcomSpecification $gedcom_specification, $gedcom) { $lines = $gedcom_specification->parseGedcom($gedcom); $header_identity = HeaderIdentity::findOrCreate([]); foreach ($lines as $n => $line) { switch ($line['LEVEL'] . $line['TAG']) { case '0HEAD': break; } } return $header_version; }
/** * Convert this data to GEDCOM format. * * @param GedcomSpecification $gedcom_specification * @param int $level * @param string $tag * * @return string */ public function toGedcom(GedcomSpecification $gedcom_specification, $level, $gedcom_tag = self::GEDCOM_TAG) { return $gedcom_specification->gedcomValue($level, $gedcom_tag, $this->value, false); }