1*53a83c54Sglarwill<?php 2*53a83c54Sglarwill 3*53a83c54Sglarwill/** 4*53a83c54Sglarwill * webtrees: online genealogy 5*53a83c54Sglarwill * Copyright (C) 2021 webtrees development team 6*53a83c54Sglarwill * This program is free software: you can redistribute it and/or modify 7*53a83c54Sglarwill * it under the terms of the GNU General Public License as published by 8*53a83c54Sglarwill * the Free Software Foundation, either version 3 of the License, or 9*53a83c54Sglarwill * (at your option) any later version. 10*53a83c54Sglarwill * This program is distributed in the hope that it will be useful, 11*53a83c54Sglarwill * but WITHOUT ANY WARRANTY; without even the implied warranty of 12*53a83c54Sglarwill * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13*53a83c54Sglarwill * GNU General Public License for more details. 14*53a83c54Sglarwill * You should have received a copy of the GNU General Public License 15*53a83c54Sglarwill * along with this program. If not, see <https://www.gnu.org/licenses/>. 16*53a83c54Sglarwill */ 17*53a83c54Sglarwill 18*53a83c54Sglarwilldeclare(strict_types=1); 19*53a83c54Sglarwill 20*53a83c54Sglarwillnamespace Fisharebest\Webtrees\Census; 21*53a83c54Sglarwill 22*53a83c54Sglarwill/** 23*53a83c54Sglarwill * Definitions for a census 24*53a83c54Sglarwill */ 25*53a83c54Sglarwillclass CensusOfCanada1881 extends CensusOfCanada implements CensusInterface 26*53a83c54Sglarwill{ 27*53a83c54Sglarwill /** 28*53a83c54Sglarwill * When did this census occur. 29*53a83c54Sglarwill * 30*53a83c54Sglarwill * @return string 31*53a83c54Sglarwill */ 32*53a83c54Sglarwill public function censusDate(): string 33*53a83c54Sglarwill { 34*53a83c54Sglarwill return '04 APR 1881'; 35*53a83c54Sglarwill } 36*53a83c54Sglarwill 37*53a83c54Sglarwill /** 38*53a83c54Sglarwill * The columns of the census. 39*53a83c54Sglarwill * 40*53a83c54Sglarwill * @return CensusColumnInterface[] 41*53a83c54Sglarwill */ 42*53a83c54Sglarwill public function columns(): array 43*53a83c54Sglarwill { 44*53a83c54Sglarwill return [ 45*53a83c54Sglarwill new CensusColumnFullName($this, 'Name', 'Name'), 46*53a83c54Sglarwill new CensusColumnSexMF($this, 'Sex', 'Sex'), 47*53a83c54Sglarwill new CensusColumnAge($this, 'Age', 'Age at last birthday'), 48*53a83c54Sglarwill new CensusColumnNull($this, 'Born', 'Born within last twelve months'), 49*53a83c54Sglarwill new CensusColumnBirthPlaceSimple($this, 'Birth Loc', 'Country or Province of Birth'), 50*53a83c54Sglarwill new CensusColumnNull($this, 'Religion', 'Religion'), 51*53a83c54Sglarwill new CensusColumnNationality($this, 'Origin', 'Origin'), 52*53a83c54Sglarwill new CensusColumnOccupation($this, 'Occupation', 'Profession, Occupation, or Trade'), 53*53a83c54Sglarwill new CensusColumnConditionUs($this, 'M/W', 'Married or Widowed'), 54*53a83c54Sglarwill new CensusColumnNull($this, 'School', 'Instruction - Going to School'), 55*53a83c54Sglarwill new CensusColumnNull($this, 'Deaf', 'Infirmities - Deaf and Dumb'), 56*53a83c54Sglarwill new CensusColumnNull($this, 'Blind', 'Infirmities - Blind'), 57*53a83c54Sglarwill new CensusColumnNull($this, 'Unsound', 'Infirmities - Unsound Mind'), 58*53a83c54Sglarwill new CensusColumnNull($this, 'Date', 'Dates of Operations and Remarks'), 59*53a83c54Sglarwill ]; 60*53a83c54Sglarwill } 61*53a83c54Sglarwill} 62