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