summaryrefslogtreecommitdiff
path: root/app/Census/CensusOfUnitedStates1900.php
blob: d2c37b1a3bf3160ed526ff5601c9c2d7d913bb45 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<?php
/**
 * webtrees: online genealogy
 * Copyright (C) 2018 webtrees development team
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 */

namespace Fisharebest\Webtrees\Census;

/**
 * Definitions for a census
 */
class CensusOfUnitedStates1900 extends CensusOfUnitedStates implements CensusInterface {
	/**
	 * When did this census occur.
	 *
	 * @return string
	 */
	public function censusDate() {
		return '01 JUN 1900';
	}

	/**
	 * The columns of the census.
	 *
	 * @return CensusColumnInterface[]
	 */
	public function columns() {
		return [
			new CensusColumnFullName($this, 'Name', 'Name'),
			new CensusColumnRelationToHead($this, 'Relation', 'Relationship of each person to the head of the family'),
			new CensusColumnNull($this, 'Race', 'Color or race'),
			new CensusColumnSexMF($this, 'Sex', 'Sex'),
			new CensusColumnBirthMonth($this, 'Month', 'Month of birth'),
			new CensusColumnBirthYear($this, 'Year', 'Year of birth'),
			new CensusColumnAge($this, 'Age', 'Age at last birthday'),
			new CensusColumnConditionUs($this, 'Cond', 'Whether single, married, widowed, or divorced'),
			new CensusColumnYearsMarried($this, 'Marr', 'Number of years married'),
			new CensusColumnChildrenBornAlive($this, 'Chil', 'Mother of how many children'),
			new CensusColumnChildrenLiving($this, 'Chil', 'Number of these children living'),
			new CensusColumnBirthPlaceSimple($this, 'BP', 'Place of birth of this person'),
			new CensusColumnFatherBirthPlaceSimple($this, 'FBP', 'Place of birth of father of this person'),
			new CensusColumnMotherBirthPlaceSimple($this, 'MBP', 'Place of birth of mother of this person'),
			new CensusColumnNull($this, 'Imm', 'Year of immigration to the United States'),
			new CensusColumnNull($this, 'US', 'Number of years in the United States'),
			new CensusColumnNull($this, 'Nat', 'Naturalization'),
			new CensusColumnOccupation($this, 'Occupation', 'Occupation, trade of profession'),
			new CensusColumnNull($this, 'Unemp', 'Months not unemployed'),
			new CensusColumnNull($this, 'School', 'Attended school (in months)'),
			new CensusColumnNull($this, 'Read', 'Can read'),
			new CensusColumnNull($this, 'Write', 'Can write'),
			new CensusColumnNull($this, 'Eng', 'Can speak English'),
			new CensusColumnNull($this, 'Home', 'Owned or rented'),
			new CensusColumnNull($this, 'Mort', 'Owned free or mortgaged'),
			new CensusColumnNull($this, 'Farm', 'Farm or house'),
		];
	}
}