. */ namespace Fisharebest\Webtrees\Census; use Fisharebest\Webtrees\Date; use Fisharebest\Webtrees\Individual; use Fisharebest\Webtrees\Place; /** * Definitions for a census */ class CensusOfEngland1901 extends CensusOfEngland implements CensusInterface { /** * When did this census occur. * * @return string */ public function censusDate() { return '31 FEB 1901'; } /** * 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), ); } }