xref: /webtrees/app/Location.php (revision 89f7189b61a494347591c99bdb92afb7d8b66e1b)
10d15532eSGreg Roach<?php
20d15532eSGreg Roach
30d15532eSGreg Roach/**
40d15532eSGreg Roach * webtrees: online genealogy
5*89f7189bSGreg Roach * Copyright (C) 2021 webtrees development team
60d15532eSGreg Roach * This program is free software: you can redistribute it and/or modify
70d15532eSGreg Roach * it under the terms of the GNU General Public License as published by
80d15532eSGreg Roach * the Free Software Foundation, either version 3 of the License, or
90d15532eSGreg Roach * (at your option) any later version.
100d15532eSGreg Roach * This program is distributed in the hope that it will be useful,
110d15532eSGreg Roach * but WITHOUT ANY WARRANTY; without even the implied warranty of
120d15532eSGreg Roach * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
130d15532eSGreg Roach * GNU General Public License for more details.
140d15532eSGreg Roach * You should have received a copy of the GNU General Public License
15*89f7189bSGreg Roach * along with this program. If not, see <https://www.gnu.org/licenses/>.
160d15532eSGreg Roach */
170d15532eSGreg Roach
180d15532eSGreg Roachdeclare(strict_types=1);
190d15532eSGreg Roach
200d15532eSGreg Roachnamespace Fisharebest\Webtrees;
210d15532eSGreg Roach
220d15532eSGreg Roach/**
230d15532eSGreg Roach * A GEDCOM location (_LOC) object.
240d15532eSGreg Roach */
250d15532eSGreg Roachclass Location extends GedcomRecord
260d15532eSGreg Roach{
270d15532eSGreg Roach    public const RECORD_TYPE = '_LOC';
280d15532eSGreg Roach
290d15532eSGreg Roach    /**
300d15532eSGreg Roach     * Extract names from the GEDCOM record.
310d15532eSGreg Roach     *
320d15532eSGreg Roach     * @return void
330d15532eSGreg Roach     */
340d15532eSGreg Roach    public function extractNames(): void
350d15532eSGreg Roach    {
360d15532eSGreg Roach        $this->extractNamesFromFacts(1, 'NAME', $this->facts(['NAME']));
370d15532eSGreg Roach    }
380d15532eSGreg Roach}
39