. */ namespace Fisharebest\Webtrees\Census; use Fisharebest\Webtrees\Individual; /** * The individual's birth place. */ class CensusColumnBirthPlaceSimple extends CensusColumnBirthPlace implements CensusColumnInterface { /** * Generate the likely value of this census column, based on available information. * * @param Individual $individual * @param Individual|null $head * * @return string */ public function generate(Individual $individual, Individual $head = null) { $birth_place = parent::generate($individual, $head); $tmp = explode(', ', $birth_place); return end($tmp); } }