1*0d15532eSGreg Roach<?php 2*0d15532eSGreg Roach 3*0d15532eSGreg Roach/** 4*0d15532eSGreg Roach * webtrees: online genealogy 5*0d15532eSGreg Roach * Copyright (C) 2020 webtrees development team 6*0d15532eSGreg Roach * This program is free software: you can redistribute it and/or modify 7*0d15532eSGreg Roach * it under the terms of the GNU General Public License as published by 8*0d15532eSGreg Roach * the Free Software Foundation, either version 3 of the License, or 9*0d15532eSGreg Roach * (at your option) any later version. 10*0d15532eSGreg Roach * This program is distributed in the hope that it will be useful, 11*0d15532eSGreg Roach * but WITHOUT ANY WARRANTY; without even the implied warranty of 12*0d15532eSGreg Roach * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13*0d15532eSGreg Roach * GNU General Public License for more details. 14*0d15532eSGreg Roach * You should have received a copy of the GNU General Public License 15*0d15532eSGreg Roach * along with this program. If not, see <http://www.gnu.org/licenses/>. 16*0d15532eSGreg Roach */ 17*0d15532eSGreg Roach 18*0d15532eSGreg Roachdeclare(strict_types=1); 19*0d15532eSGreg Roach 20*0d15532eSGreg Roachnamespace Fisharebest\Webtrees; 21*0d15532eSGreg Roach 22*0d15532eSGreg Roach/** 23*0d15532eSGreg Roach * A GEDCOM location (_LOC) object. 24*0d15532eSGreg Roach */ 25*0d15532eSGreg Roachclass Location extends GedcomRecord 26*0d15532eSGreg Roach{ 27*0d15532eSGreg Roach public const RECORD_TYPE = '_LOC'; 28*0d15532eSGreg Roach 29*0d15532eSGreg Roach /** 30*0d15532eSGreg Roach * Extract names from the GEDCOM record. 31*0d15532eSGreg Roach * 32*0d15532eSGreg Roach * @return void 33*0d15532eSGreg Roach */ 34*0d15532eSGreg Roach public function extractNames(): void 35*0d15532eSGreg Roach { 36*0d15532eSGreg Roach $this->extractNamesFromFacts(1, 'NAME', $this->facts(['NAME'])); 37*0d15532eSGreg Roach } 38*0d15532eSGreg Roach} 39