153a83c54Sglarwill<?php 253a83c54Sglarwill 353a83c54Sglarwill/** 453a83c54Sglarwill * webtrees: online genealogy 5*d11be702SGreg Roach * Copyright (C) 2023 webtrees development team 653a83c54Sglarwill * This program is free software: you can redistribute it and/or modify 753a83c54Sglarwill * it under the terms of the GNU General Public License as published by 853a83c54Sglarwill * the Free Software Foundation, either version 3 of the License, or 953a83c54Sglarwill * (at your option) any later version. 1053a83c54Sglarwill * This program is distributed in the hope that it will be useful, 1153a83c54Sglarwill * but WITHOUT ANY WARRANTY; without even the implied warranty of 1253a83c54Sglarwill * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1353a83c54Sglarwill * GNU General Public License for more details. 1453a83c54Sglarwill * You should have received a copy of the GNU General Public License 1553a83c54Sglarwill * along with this program. If not, see <https://www.gnu.org/licenses/>. 1653a83c54Sglarwill */ 1753a83c54Sglarwill 1853a83c54Sglarwilldeclare(strict_types=1); 1953a83c54Sglarwill 2053a83c54Sglarwillnamespace Fisharebest\Webtrees\Census; 2153a83c54Sglarwill 2253a83c54Sglarwill/** 2353a83c54Sglarwill * Definitions for a census 2453a83c54Sglarwill */ 2553a83c54Sglarwillclass CensusOfCanada1891 extends CensusOfCanada implements CensusInterface 2653a83c54Sglarwill{ 2753a83c54Sglarwill /** 2853a83c54Sglarwill * When did this census occur. 2953a83c54Sglarwill * 3053a83c54Sglarwill * @return string 3153a83c54Sglarwill */ 3253a83c54Sglarwill public function censusDate(): string 3353a83c54Sglarwill { 3453a83c54Sglarwill return '06 APR 1891'; 3553a83c54Sglarwill } 3653a83c54Sglarwill 3753a83c54Sglarwill /** 3853a83c54Sglarwill * The columns of the census. 3953a83c54Sglarwill * 4009482a55SGreg Roach * @return array<CensusColumnInterface> 4153a83c54Sglarwill */ 4253a83c54Sglarwill public function columns(): array 4353a83c54Sglarwill { 4453a83c54Sglarwill return [ 4553a83c54Sglarwill new CensusColumnFullName($this, 'Name', 'Name'), 4653a83c54Sglarwill new CensusColumnSexMF($this, 'Sex', 'Sex'), 4753a83c54Sglarwill new CensusColumnAge($this, 'Age', 'Age at last birthday'), 48da3cb887Sglarwill new CensusColumnConditionCanadaMarriedWidowed($this, 'M/W', 'Married or Widowed'), 4953a83c54Sglarwill new CensusColumnRelationToHeadEnglish($this, 'Relation', 'Relationship to Head of Family'), 5053a83c54Sglarwill new CensusColumnBirthPlaceSimple($this, 'Birth Loc', 'Country or Province of Birth'), 5153a83c54Sglarwill new CensusColumnNull($this, 'French', 'French Canadians'), 5253a83c54Sglarwill new CensusColumnFatherBirthPlaceSimple($this, 'FBP', 'Place of birth of father'), 5353a83c54Sglarwill new CensusColumnMotherBirthPlaceSimple($this, 'MBP', 'Place of birth of mother'), 5453a83c54Sglarwill new CensusColumnNull($this, 'Religion', 'Religion'), 5553a83c54Sglarwill new CensusColumnOccupation($this, 'Occupation', 'Profession, Occupation, or Trade'), 5653a83c54Sglarwill new CensusColumnNull($this, 'Employers', 'Employers'), 5753a83c54Sglarwill new CensusColumnNull($this, 'Earner', 'Wage Earner'), 5853a83c54Sglarwill new CensusColumnNull($this, 'UnEmp', 'Unemployed during week preceeding Census'), 5953a83c54Sglarwill new CensusColumnNull($this, 'AvgEmp', 'Employer to state average number of hands employed during year'), 6053a83c54Sglarwill new CensusColumnNull($this, 'Read', 'Instruction - Read'), 6153a83c54Sglarwill new CensusColumnNull($this, 'Write', 'Instruction - Write'), 6253a83c54Sglarwill new CensusColumnNull($this, 'Deaf', 'Infirmities - Deaf and Dumb'), 6353a83c54Sglarwill new CensusColumnNull($this, 'Blind', 'Infirmities - Blind'), 6453a83c54Sglarwill new CensusColumnNull($this, 'Unsound', 'Infirmities - Unsound Mind'), 6553a83c54Sglarwill ]; 6653a83c54Sglarwill } 6753a83c54Sglarwill} 68