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 CensusOfCanada1901 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 '31 MAR 1901'; 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 CensusColumnNull($this, 'Color', 'Colour'), 4853a83c54Sglarwill new CensusColumnRelationToHeadEnglish($this, 'Relation', 'Relationship to Head of Family'), 49da3cb887Sglarwill new CensusColumnConditionCanada($this, 'S/M/W/D', 'Single, married, widowed or divorced'), 5053a83c54Sglarwill new CensusColumnBirthMonthDay($this, 'M/D', 'Month and date of birth'), 5153a83c54Sglarwill new CensusColumnBirthYear($this, 'Year', 'Year of birth'), 5253a83c54Sglarwill new CensusColumnAge($this, 'Age', 'Age at last birthday'), 5353a83c54Sglarwill new CensusColumnBirthPlaceSimple($this, 'Birth Loc', 'Country or Place of Birth, plus Rural or Urban'), 5453a83c54Sglarwill new CensusColumnNull($this, 'Origin', 'Racial or Tribal origin'), 5553a83c54Sglarwill new CensusColumnNationality($this, 'Nationality', 'Nationality'), 5653a83c54Sglarwill new CensusColumnNull($this, 'Religion', 'Religion'), 5753a83c54Sglarwill new CensusColumnOccupation($this, 'Occupation', 'Profession, Occupation or Trade'), 5853a83c54Sglarwill new CensusColumnNull($this, 'Retired', 'Living on own means'), 5953a83c54Sglarwill new CensusColumnNull($this, 'Employer', 'Employer'), 6053a83c54Sglarwill new CensusColumnNull($this, 'Employee', 'Employee'), 6153a83c54Sglarwill new CensusColumnNull($this, 'Work on own', 'Working on own account'), 6253a83c54Sglarwill new CensusColumnNull($this, 'Trade', 'Working at trade in factory or home'), 6353a83c54Sglarwill new CensusColumnNull($this, 'Ms Fac', 'Months employed at trade in factory'), 6453a83c54Sglarwill new CensusColumnNull($this, 'Ms Home', 'Months employed at trade in home'), 6553a83c54Sglarwill new CensusColumnNull($this, 'Ms Other', 'Months employed in other than trade in factory or home'), 6653a83c54Sglarwill new CensusColumnNull($this, 'Earnings', 'Earnings from occupation or trade $'), 6753a83c54Sglarwill new CensusColumnNull($this, 'Extra Earn', 'Extra earnings (from other than occupation or trade) $'), 6853a83c54Sglarwill new CensusColumnNull($this, 'Edu Month', 'Months at school in year'), 6953a83c54Sglarwill new CensusColumnNull($this, 'Read', 'Can Read'), 7053a83c54Sglarwill new CensusColumnNull($this, 'Write', 'Can Write'), 7153a83c54Sglarwill new CensusColumnNull($this, 'English', 'Speaks English'), 7253a83c54Sglarwill new CensusColumnNull($this, 'French', 'Speaks French'), 7353a83c54Sglarwill new CensusColumnNull($this, 'Mother toungue', 'Mother toungue'), 7453a83c54Sglarwill new CensusColumnNull($this, 'Infirmities', 'Infirmities - a. Deaf and dumb, b. Blind, c. Unsound mind'), 7553a83c54Sglarwill ]; 7653a83c54Sglarwill } 7753a83c54Sglarwill} 78