xref: /webtrees/app/Census/CensusOfCanada1881.php (revision da3cb887318b253ac0a743309ac1b537880d6ba2)
153a83c54Sglarwill<?php
253a83c54Sglarwill
353a83c54Sglarwill/**
453a83c54Sglarwill * webtrees: online genealogy
553a83c54Sglarwill * Copyright (C) 2021 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 CensusOfCanada1881 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 '04 APR 1881';
3553a83c54Sglarwill    }
3653a83c54Sglarwill
3753a83c54Sglarwill    /**
3853a83c54Sglarwill     * The columns of the census.
3953a83c54Sglarwill     *
4053a83c54Sglarwill     * @return 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'),
4853a83c54Sglarwill            new CensusColumnNull($this, 'Born', 'Born within last twelve months'),
4953a83c54Sglarwill            new CensusColumnBirthPlaceSimple($this, 'Birth Loc', 'Country or Province of Birth'),
5053a83c54Sglarwill            new CensusColumnNull($this, 'Religion', 'Religion'),
5153a83c54Sglarwill            new CensusColumnNationality($this, 'Origin', 'Origin'),
5253a83c54Sglarwill            new CensusColumnOccupation($this, 'Occupation', 'Profession, Occupation, or Trade'),
53*da3cb887Sglarwill            new CensusColumnConditionCanadaMarriedWidowed($this, 'M/W', 'Married or Widowed'),
5453a83c54Sglarwill            new CensusColumnNull($this, 'School', 'Instruction - Going to School'),
5553a83c54Sglarwill            new CensusColumnNull($this, 'Deaf', 'Infirmities - Deaf and Dumb'),
5653a83c54Sglarwill            new CensusColumnNull($this, 'Blind', 'Infirmities - Blind'),
5753a83c54Sglarwill            new CensusColumnNull($this, 'Unsound', 'Infirmities - Unsound Mind'),
5853a83c54Sglarwill            new CensusColumnNull($this, 'Date', 'Dates of Operations and Remarks'),
5953a83c54Sglarwill        ];
6053a83c54Sglarwill    }
6153a83c54Sglarwill}
62