xref: /webtrees/app/Census/CensusOfUnitedStates1940.php (revision d11be7027e34e3121be11cc025421873364403f9)
181d1be7aSGreg Roach<?php
23976b470SGreg Roach
381d1be7aSGreg Roach/**
481d1be7aSGreg Roach * webtrees: online genealogy
5*d11be702SGreg Roach * Copyright (C) 2023 webtrees development team
681d1be7aSGreg Roach * This program is free software: you can redistribute it and/or modify
781d1be7aSGreg Roach * it under the terms of the GNU General Public License as published by
881d1be7aSGreg Roach * the Free Software Foundation, either version 3 of the License, or
981d1be7aSGreg Roach * (at your option) any later version.
1081d1be7aSGreg Roach * This program is distributed in the hope that it will be useful,
1181d1be7aSGreg Roach * but WITHOUT ANY WARRANTY; without even the implied warranty of
1281d1be7aSGreg Roach * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1381d1be7aSGreg Roach * GNU General Public License for more details.
1481d1be7aSGreg Roach * You should have received a copy of the GNU General Public License
1589f7189bSGreg Roach * along with this program. If not, see <https://www.gnu.org/licenses/>.
1681d1be7aSGreg Roach */
17fcfa147eSGreg Roach
18e7f56f2aSGreg Roachdeclare(strict_types=1);
1915d603e7SGreg Roach
2081d1be7aSGreg Roachnamespace Fisharebest\Webtrees\Census;
2181d1be7aSGreg Roach
2281d1be7aSGreg Roach/**
2381d1be7aSGreg Roach * Definitions for a census
2481d1be7aSGreg Roach */
25c1010edaSGreg Roachclass CensusOfUnitedStates1940 extends CensusOfUnitedStates implements CensusInterface
26c1010edaSGreg Roach{
2781d1be7aSGreg Roach    /**
2881d1be7aSGreg Roach     * When did this census occur.
2981d1be7aSGreg Roach     *
3081d1be7aSGreg Roach     * @return string
3181d1be7aSGreg Roach     */
328f53f488SRico Sonntag    public function censusDate(): string
33c1010edaSGreg Roach    {
3481d1be7aSGreg Roach        return 'APR 1940';
3581d1be7aSGreg Roach    }
3681d1be7aSGreg Roach
3781d1be7aSGreg Roach    /**
3881d1be7aSGreg Roach     * The columns of the census.
3981d1be7aSGreg Roach     *
4009482a55SGreg Roach     * @return array<CensusColumnInterface>
4181d1be7aSGreg Roach     */
428f53f488SRico Sonntag    public function columns(): array
43c1010edaSGreg Roach    {
4413abd6f3SGreg Roach        return [
45e7625783SGreg Roach            new CensusColumnNull($this, 'Street', 'Street,avenue,road,etc'),
46e7625783SGreg Roach            new CensusColumnNull($this, 'Number', 'House number (in cities and towns)'),
47e7625783SGreg Roach            new CensusColumnNull($this, 'Home', 'Home owned (O) or rented (R)'),
48e7625783SGreg Roach            new CensusColumnNull($this, 'Value', 'Value of home, if owned, or monthly rental if rented'),
49e7625783SGreg Roach            new CensusColumnNull($this, 'Farm', 'Does this household live on a farm?'),
50e7625783SGreg Roach            new CensusColumnFullName($this, 'Name', 'Name of each person whose usual place of residence on April 1, 1940, was in this household'),
51e7625783SGreg Roach            new CensusColumnRelationToHeadEnglish($this, 'Relation', 'Relationship of this person to the head of the household'),
52e7625783SGreg Roach            new CensusColumnSexMF($this, 'Sex', 'Sex-Male (M),Female (F)'),
5381d1be7aSGreg Roach            new CensusColumnNull($this, 'Race', 'Color or race'),
5481d1be7aSGreg Roach            new CensusColumnAge($this, 'Age', 'Age at last birthday'),
55e7625783SGreg Roach            new CensusColumnConditionUs($this, 'Cond', 'Marital Status-Single (S), Married (M), Widowed (W), Divorced (D)'),
56e7625783SGreg Roach            new CensusColumnNull($this, 'School', 'Attended school or college any time since March 1, 1940?'),
57e7625783SGreg Roach            new CensusColumnNull($this, 'Grade', 'Highest grade of school completed'),
5881d1be7aSGreg Roach            new CensusColumnBirthPlaceSimple($this, 'BP', 'Place of birth'),
59e7625783SGreg Roach            new CensusColumnNull($this, 'Citizen', 'Citizenship of the foreign born'),
60e7625783SGreg Roach            new CensusColumnNull($this, 'City', 'City, town, or village having 2,500 or more inhabitants. Enter "R" for all other places.'),
61e7625783SGreg Roach            new CensusColumnNull($this, 'County', 'County'),
62e7625783SGreg Roach            new CensusColumnNull($this, 'State', 'State (or Territory or foreign country)'),
63e7625783SGreg Roach            new CensusColumnNull($this, 'OnFarm', 'On a farm?'),
64e7625783SGreg Roach            new CensusColumnNull($this, 'Work', 'Was this person AT WORK for pay or profit in private or nonemergency Govt. work during week of March 24-30?'),
65e7625783SGreg Roach            new CensusColumnNull($this, 'Emerg', 'If not, was he at work on, or assigned to, public EMERGENCY WORK (WPA,NYA,CCC,etc.) during week of March 24-30?'),
66e7625783SGreg Roach            new CensusColumnNull($this, 'Seeking', 'Was this person SEEKING WORK?'),
67e7625783SGreg Roach            new CensusColumnNull($this, 'Job', 'If not seeking work, did he HAVE A JOB, business, etc.?'),
68e7625783SGreg Roach            new CensusColumnNull($this, 'Type', 'Indicate whether engaged in home housework (H), in school (S), unable to work (U), or other (Ot)'),
69e7625783SGreg Roach            new CensusColumnNull($this, 'Hours', 'Numbers of hours worked during week of March 24-30, 1940'),
70e7625783SGreg Roach            new CensusColumnNull($this, 'Unemp', 'Duration of unemployment up to March 30, 1940-in weeks'),
71e7625783SGreg Roach            new CensusColumnOccupation($this, 'Occupation', 'Trade, profession, or particular kind of work'),
72e7625783SGreg Roach            new CensusColumnNull($this, 'Industry', 'Industry or business'),
73e7625783SGreg Roach            new CensusColumnNull($this, 'Weeks', 'Number of weeks worked in 1939 (Equivalent full-time weeks)'),
74e7625783SGreg Roach            new CensusColumnNull($this, 'Salary', 'Amount of money wages or salary received (including commissions)'),
75e7625783SGreg Roach            new CensusColumnNull($this, 'Extra', 'Did this person receive income of $50 or more from sources other than money wages or salary?'),
7613abd6f3SGreg Roach        ];
7781d1be7aSGreg Roach    }
7881d1be7aSGreg Roach}
79