xref: /webtrees/app/Census/CensusOfUnitedStates1940.php (revision abe3581c1ce850864080bffa6e8ce41ebbdd10d2)
181d1be7aSGreg Roach<?php
281d1be7aSGreg Roach/**
381d1be7aSGreg Roach * webtrees: online genealogy
4*abe3581cSGreg Roach * Copyright (C) 2019 webtrees development team
581d1be7aSGreg Roach * This program is free software: you can redistribute it and/or modify
681d1be7aSGreg Roach * it under the terms of the GNU General Public License as published by
781d1be7aSGreg Roach * the Free Software Foundation, either version 3 of the License, or
881d1be7aSGreg Roach * (at your option) any later version.
981d1be7aSGreg Roach * This program is distributed in the hope that it will be useful,
1081d1be7aSGreg Roach * but WITHOUT ANY WARRANTY; without even the implied warranty of
1181d1be7aSGreg Roach * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1281d1be7aSGreg Roach * GNU General Public License for more details.
1381d1be7aSGreg Roach * You should have received a copy of the GNU General Public License
1481d1be7aSGreg Roach * along with this program. If not, see <http://www.gnu.org/licenses/>.
1581d1be7aSGreg Roach */
16e7f56f2aSGreg Roachdeclare(strict_types=1);
1715d603e7SGreg Roach
1881d1be7aSGreg Roachnamespace Fisharebest\Webtrees\Census;
1981d1be7aSGreg Roach
2081d1be7aSGreg Roach/**
2181d1be7aSGreg Roach * Definitions for a census
2281d1be7aSGreg Roach */
23c1010edaSGreg Roachclass CensusOfUnitedStates1940 extends CensusOfUnitedStates implements CensusInterface
24c1010edaSGreg Roach{
2581d1be7aSGreg Roach    /**
2681d1be7aSGreg Roach     * When did this census occur.
2781d1be7aSGreg Roach     *
2881d1be7aSGreg Roach     * @return string
2981d1be7aSGreg Roach     */
308f53f488SRico Sonntag    public function censusDate(): string
31c1010edaSGreg Roach    {
3281d1be7aSGreg Roach        return 'APR 1940';
3381d1be7aSGreg Roach    }
3481d1be7aSGreg Roach
3581d1be7aSGreg Roach    /**
3681d1be7aSGreg Roach     * The columns of the census.
3781d1be7aSGreg Roach     *
3881d1be7aSGreg Roach     * @return CensusColumnInterface[]
3981d1be7aSGreg Roach     */
408f53f488SRico Sonntag    public function columns(): array
41c1010edaSGreg Roach    {
4213abd6f3SGreg Roach        return [
4381d1be7aSGreg Roach            new CensusColumnFullName($this, 'Name', 'Name'),
4481d1be7aSGreg Roach            new CensusColumnRelationToHead($this, 'Relation', 'Relationship of each person to the head of the family'),
4581d1be7aSGreg Roach            new CensusColumnNull($this, 'Home', 'Home owned or rented'),
4681d1be7aSGreg Roach            new CensusColumnNull($this, 'V/R', 'Value of house, if owned, or monthly rental if rented'),
4781d1be7aSGreg Roach            new CensusColumnNull($this, 'Farm', 'Does this family live on a farm'),
4881d1be7aSGreg Roach            new CensusColumnSexMF($this, 'Sex', 'Sex'),
4981d1be7aSGreg Roach            new CensusColumnNull($this, 'Race', 'Color or race'),
5081d1be7aSGreg Roach            new CensusColumnAge($this, 'Age', 'Age at last birthday'),
5181d1be7aSGreg Roach            new CensusColumnConditionUs($this, 'Cond', 'Whether single, married, widowed, or divorced'),
5281d1be7aSGreg Roach            new CensusColumnAgeMarried($this, 'AM', 'Age at first marriage'),
5381d1be7aSGreg Roach            new CensusColumnNull($this, 'School', 'Attended school since Sept. 1, 1929'),
5481d1be7aSGreg Roach            new CensusColumnNull($this, 'R/W', 'Whether able to read and write'),
5581d1be7aSGreg Roach            new CensusColumnBirthPlaceSimple($this, 'BP', 'Place of birth'),
5681d1be7aSGreg Roach            new CensusColumnFatherBirthPlaceSimple($this, 'FBP', 'Place of birth of father'),
5781d1be7aSGreg Roach            new CensusColumnMotherBirthPlaceSimple($this, 'MBP', 'Place of birth of mother'),
5881d1be7aSGreg Roach            new CensusColumnNull($this, 'Lang', 'Language spoken in home before coming to the United States'),
5981d1be7aSGreg Roach            new CensusColumnNull($this, 'Imm', 'Year of immigration to the United States'),
6081d1be7aSGreg Roach            new CensusColumnNull($this, 'Nat', 'Naturalization'),
6181d1be7aSGreg Roach            new CensusColumnNull($this, 'Eng', 'Whether able to speak English'),
6281d1be7aSGreg Roach            new CensusColumnOccupation($this, 'Occupation', 'Trade, profession, or particular kind of work done'),
6381d1be7aSGreg Roach            new CensusColumnNull($this, 'Industry', 'Industry, business of establishment in which at work'),
6481d1be7aSGreg Roach            new CensusColumnNull($this, 'Code', 'Industry code'),
6581d1be7aSGreg Roach            new CensusColumnNull($this, 'Emp', 'Class of worker'),
6681d1be7aSGreg Roach            new CensusColumnNull($this, 'Work', 'Whether normally at work yesterday or the last regular working day'),
6781d1be7aSGreg Roach            new CensusColumnNull($this, 'Unemp', 'If not, …'),
6881d1be7aSGreg Roach            new CensusColumnNull($this, 'Vet', 'Whether a veteran of U.S. military or …'),
6981d1be7aSGreg Roach            new CensusColumnNull($this, 'War', 'What war or …'),
7013abd6f3SGreg Roach        ];
7181d1be7aSGreg Roach    }
7281d1be7aSGreg Roach}
73