xref: /webtrees/app/Census/CensusOfUnitedStates1950.php (revision afa67798854828b1edc33dd077960ec2b18e6140)
1<?php
2
3/**
4 * webtrees: online genealogy
5 * Copyright (C) 2021 webtrees development team
6 * This program is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <https://www.gnu.org/licenses/>.
16 */
17
18declare(strict_types=1);
19
20namespace Fisharebest\Webtrees\Census;
21
22/**
23 * Definitions for a census
24 */
25class CensusOfUnitedStates1950 extends CensusOfUnitedStates implements CensusInterface
26{
27    /**
28     * When did this census occur.
29     *
30     * @return string
31     */
32    public function censusDate(): string
33    {
34        return 'APR 1950';
35    }
36
37    /**
38     * The columns of the census.
39     *
40     * @return CensusColumnInterface[]
41     */
42    public function columns(): array
43    {
44        return [
45            new CensusColumnNull($this, 'Street', 'Name of street,avenue,or road'),
46            new CensusColumnNull($this, 'Number', 'House (and apartment) number'),
47            new CensusColumnNull($this, 'Serial', 'Serial number of dwelling unit'),
48            new CensusColumnNull($this, 'Farm', 'Is this house on a farm (or ranch)?'),
49            new CensusColumnNull($this, 'Acres', 'If No in item 4-Is this house on a place of three or more acres?'),
50            new CensusColumnFullName($this, 'Name', 'What is the name of the had of this household? What are the names of all other personsl who live here?'),
51            new CensusColumnRelationToHeadEnglish($this, 'Relation', 'Enter relationship of person to head of the household'),
52            new CensusColumnNull($this, 'Race', 'White(W) Negro(Neg) American Indian(Ind) Japanese(Jap) Chinese(Chi) Filipino(Fil) Other race-spell out'),
53            new CensusColumnSexMF($this, 'Sex', 'Sex-Male (M),Female (F)'),
54            new CensusColumnAge($this, 'Age', 'How old was he on his last birthday?'),
55            new CensusColumnConditionUs($this, 'Cond', 'Is he now married,widowed,divorced,separated,or never married?'),
56            new CensusColumnBirthPlaceSimple($this, 'BP', 'What State (or foreign country) was he born in?'),
57            new CensusColumnNull($this, 'Nat', 'If foreign born-Is he naturalized?'),
58            new CensusColumnNull($this, 'Type', 'What was this person doing most of last week-working,keeping house,or something else?'),
59            new CensusColumnNull($this, 'AnyWork', 'If H or Ot in item 15-Did this person do any work at all last week,not counting work around the house?'),
60            new CensusColumnNull($this, 'Seeking', 'If No in item 16-Was this person looking for work?'),
61            new CensusColumnNull($this, 'Employed', 'If No in item 17-Even though he didn’t work last week,does he have a job or business?'),
62            new CensusColumnNull($this, 'Hours', 'If Wk in item 15 or Yes in item 16-How many hours did he work last week?'),
63            new CensusColumnOccupation($this, 'Occupation', 'What kind of work was he doing?'),
64            new CensusColumnNull($this, 'Industry', 'What kind of business or industry was he working in?'),
65            new CensusColumnNull($this, 'Class', 'Class of worker'),
66        ];
67    }
68}
69