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