xref: /webtrees/app/Census/CensusColumnBirthPlaceSimple.php (revision 8f53f488f13e53e44dc48778e8f51ec9f91352dd)
1a4500ed5SGreg Roach<?php
2a4500ed5SGreg Roach/**
3a4500ed5SGreg Roach * webtrees: online genealogy
41062a142SGreg 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 birth place.
23a4500ed5SGreg Roach */
24c1010edaSGreg Roachclass CensusColumnBirthPlaceSimple extends CensusColumnBirthPlace implements CensusColumnInterface
25c1010edaSGreg Roach{
26a4500ed5SGreg Roach    /**
27a4500ed5SGreg Roach     * Generate the likely value of this census column, based on available information.
28a4500ed5SGreg Roach     *
29a4500ed5SGreg Roach     * @param Individual $individual
3015d603e7SGreg Roach     * @param Individual $head
31a4500ed5SGreg Roach     *
32a4500ed5SGreg Roach     * @return string
33a4500ed5SGreg Roach     */
34*8f53f488SRico Sonntag    public function generate(Individual $individual, Individual $head): string
35c1010edaSGreg Roach    {
36a7e4e269SGreg Roach        return $this->lastPartOfPlace(parent::generate($individual, $head));
37a4500ed5SGreg Roach    }
38a4500ed5SGreg Roach}
39