1a4500ed5SGreg Roach<?php 2a4500ed5SGreg Roach/** 3a4500ed5SGreg Roach * webtrees: online genealogy 4*8fcd0d32SGreg Roach * Copyright (C) 2019 webtrees development team 5a4500ed5SGreg Roach * This program is free software: you can redistribute it and/or modify 6a4500ed5SGreg Roach * it under the terms of the GNU General Public License as published by 7a4500ed5SGreg Roach * the Free Software Foundation, either version 3 of the License, or 8a4500ed5SGreg Roach * (at your option) any later version. 9a4500ed5SGreg Roach * This program is distributed in the hope that it will be useful, 10a4500ed5SGreg Roach * but WITHOUT ANY WARRANTY; without even the implied warranty of 11a4500ed5SGreg Roach * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12a4500ed5SGreg Roach * GNU General Public License for more details. 13a4500ed5SGreg Roach * You should have received a copy of the GNU General Public License 14a4500ed5SGreg Roach * along with this program. If not, see <http://www.gnu.org/licenses/>. 15a4500ed5SGreg Roach */ 16e7f56f2aSGreg Roachdeclare(strict_types=1); 1715d603e7SGreg Roach 18a4500ed5SGreg Roachnamespace Fisharebest\Webtrees\Census; 19a4500ed5SGreg Roach 20a4500ed5SGreg Roachuse Fisharebest\Webtrees\Individual; 21a4500ed5SGreg Roach 22a4500ed5SGreg Roach/** 23a4500ed5SGreg Roach * The individual's birth place. 24a4500ed5SGreg Roach */ 25c1010edaSGreg Roachclass CensusColumnBirthPlaceSimple extends CensusColumnBirthPlace implements CensusColumnInterface 26c1010edaSGreg Roach{ 27a4500ed5SGreg Roach /** 28a4500ed5SGreg Roach * Generate the likely value of this census column, based on available information. 29a4500ed5SGreg Roach * 30a4500ed5SGreg Roach * @param Individual $individual 3115d603e7SGreg Roach * @param Individual $head 32a4500ed5SGreg Roach * 33a4500ed5SGreg Roach * @return string 34a4500ed5SGreg Roach */ 358f53f488SRico Sonntag public function generate(Individual $individual, Individual $head): string 36c1010edaSGreg Roach { 37a7e4e269SGreg Roach return $this->lastPartOfPlace(parent::generate($individual, $head)); 38a4500ed5SGreg Roach } 39a4500ed5SGreg Roach} 40