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