. */ namespace Fisharebest\Webtrees\Census; use Fisharebest\Webtrees\Date; use Fisharebest\Webtrees\Individual; use Fisharebest\Webtrees\Place; /** * Definitions for a census */ class CensusOfDenmark1834 extends CensusOfDenmark implements CensusInterface { /** * When did this census occur. * * @return string */ public function censusDate() { return '18 FEB 1834'; } /** * The columns of the census. * * @param Individual $individual * * @return CensusColumnInterface[] */ public function columns(Individual $individual) { $place = new Place($this->censusPlace(), $individual->getTree()); $date = new Date($this->censusDate()); return array( new CensusColumnFullName($individual, $place, $date), new CensusColumnSexMF($individual, $place, $date), new CensusColumnOccupation($individual, $place, $date), ); } }