xref: /webtrees/app/Census/CensusColumnFatherBirthPlaceSimple.php (revision 1062a1429914c995339f502856821457aa975a5a)
1a4500ed5SGreg Roach<?php
2a4500ed5SGreg Roach/**
3a4500ed5SGreg Roach * webtrees: online genealogy
4*1062a142SGreg Roach * Copyright (C) 2018 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 */
1615d603e7SGreg Roach
17a4500ed5SGreg Roachnamespace Fisharebest\Webtrees\Census;
18a4500ed5SGreg Roach
19a4500ed5SGreg Roachuse Fisharebest\Webtrees\Individual;
20a4500ed5SGreg Roach
21a4500ed5SGreg Roach/**
22a4500ed5SGreg Roach * The individual's father's birth place.
23a4500ed5SGreg Roach */
24a7e4e269SGreg Roachclass CensusColumnFatherBirthPlaceSimple extends CensusColumnFatherBirthPlace implements CensusColumnInterface {
25a4500ed5SGreg Roach	/**
26a4500ed5SGreg Roach	 * Generate the likely value of this census column, based on available information.
27a4500ed5SGreg Roach	 *
28a4500ed5SGreg Roach	 * @param Individual $individual
2915d603e7SGreg Roach	 * @param Individual $head
30a4500ed5SGreg Roach	 *
31a4500ed5SGreg Roach	 * @return string
32a4500ed5SGreg Roach	 */
33a4500ed5SGreg Roach	public function generate(Individual $individual, Individual $head = null) {
34a7e4e269SGreg Roach		return $this->lastPartOfPlace(parent::generate($individual, $head));
35a4500ed5SGreg Roach	}
36a4500ed5SGreg Roach}
37