xref: /webtrees/app/Census/CensusOfCanadaPraries1916.php (revision da3cb887318b253ac0a743309ac1b537880d6ba2)
1*da3cb887Sglarwill<?php
2*da3cb887Sglarwill
3*da3cb887Sglarwill/**
4*da3cb887Sglarwill * webtrees: online genealogy
5*da3cb887Sglarwill * Copyright (C) 2021 webtrees development team
6*da3cb887Sglarwill * This program is free software: you can redistribute it and/or modify
7*da3cb887Sglarwill * it under the terms of the GNU General Public License as published by
8*da3cb887Sglarwill * the Free Software Foundation, either version 3 of the License, or
9*da3cb887Sglarwill * (at your option) any later version.
10*da3cb887Sglarwill * This program is distributed in the hope that it will be useful,
11*da3cb887Sglarwill * but WITHOUT ANY WARRANTY; without even the implied warranty of
12*da3cb887Sglarwill * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13*da3cb887Sglarwill * GNU General Public License for more details.
14*da3cb887Sglarwill * You should have received a copy of the GNU General Public License
15*da3cb887Sglarwill * along with this program. If not, see <https://www.gnu.org/licenses/>.
16*da3cb887Sglarwill */
17*da3cb887Sglarwill
18*da3cb887Sglarwilldeclare(strict_types=1);
19*da3cb887Sglarwill
20*da3cb887Sglarwillnamespace Fisharebest\Webtrees\Census;
21*da3cb887Sglarwill
22*da3cb887Sglarwill/**
23*da3cb887Sglarwill * Definitions for a census
24*da3cb887Sglarwill */
25*da3cb887Sglarwillclass CensusOfCanadaPraries1916 extends CensusOfCanada implements CensusInterface
26*da3cb887Sglarwill{
27*da3cb887Sglarwill    /**
28*da3cb887Sglarwill     * When did this census occur.
29*da3cb887Sglarwill     *
30*da3cb887Sglarwill     * @return string
31*da3cb887Sglarwill     */
32*da3cb887Sglarwill    public function censusDate(): string
33*da3cb887Sglarwill    {
34*da3cb887Sglarwill        return '01 JUN 1916';
35*da3cb887Sglarwill    }
36*da3cb887Sglarwill
37*da3cb887Sglarwill    /**
38*da3cb887Sglarwill     * The columns of the census.
39*da3cb887Sglarwill     *
40*da3cb887Sglarwill     * @return CensusColumnInterface[]
41*da3cb887Sglarwill     */
42*da3cb887Sglarwill    public function columns(): array
43*da3cb887Sglarwill    {
44*da3cb887Sglarwill        return [
45*da3cb887Sglarwill            new CensusColumnFullName($this, 'Name', 'Name of each person in family, household or institution'),
46*da3cb887Sglarwill            new CensusColumnNull($this, 'Mil', 'Military Service'),
47*da3cb887Sglarwill            new CensusColumnRelationToHeadEnglish($this, 'Relation', 'Relationship to Head of Family or household'),
48*da3cb887Sglarwill            new CensusColumnSexMF($this, 'Sex', 'Sex'),
49*da3cb887Sglarwill            new CensusColumnConditionCanada($this, 'S/M/W/D/L', 'Single, Married, Widowed, Divorced or Legally Separated'),
50*da3cb887Sglarwill            new CensusColumnAge($this, 'Age', 'Age at last birthday - on June 1, 1916'),
51*da3cb887Sglarwill            new CensusColumnBirthPlaceSimple($this, 'Birth Loc', 'Country or place of birth'),
52*da3cb887Sglarwill            new CensusColumnNull($this, 'Religion', 'Religion'),
53*da3cb887Sglarwill            new CensusColumnNull($this, 'Yr. immigrated', 'Year of immigration to Canada'),
54*da3cb887Sglarwill            new CensusColumnNull($this, 'Nationality', 'Nationality'),
55*da3cb887Sglarwill            new CensusColumnNull($this, 'Origin', 'Racial or tribal origin'),
56*da3cb887Sglarwill            new CensusColumnNull($this, 'English', 'Can speak English'),
57*da3cb887Sglarwill            new CensusColumnNull($this, 'French', 'Can speak French'),
58*da3cb887Sglarwill            new CensusColumnNull($this, 'Language', 'Mother tongue'),
59*da3cb887Sglarwill            new CensusColumnNull($this, 'Read', 'Can read'),
60*da3cb887Sglarwill            new CensusColumnNull($this, 'Write', 'Can write'),
61*da3cb887Sglarwill            new CensusColumnOccupation($this, 'Occupation', 'Chief occupation or trade'),
62*da3cb887Sglarwill            new CensusColumnNull($this, 'E/W/OA', 'Employer "e", Employee or worker "w", Working on own account "o.a."'),
63*da3cb887Sglarwill            new CensusColumnNull($this, 'Where employed', 'State where person was employed as "on farm", "in cotton mill", "in foundry", "in dry goods store", "in saw-mill", etc.'),
64*da3cb887Sglarwill        ];
65*da3cb887Sglarwill    }
66*da3cb887Sglarwill}
67