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