181d1be7aSGreg Roach<?php 281d1be7aSGreg Roach/** 381d1be7aSGreg Roach * webtrees: online genealogy 481d1be7aSGreg Roach * Copyright (C) 2015 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 */ 1615d603e7SGreg Roach 1781d1be7aSGreg Roachnamespace Fisharebest\Webtrees\Census; 1881d1be7aSGreg Roach 1981d1be7aSGreg Roach/** 2081d1be7aSGreg Roach * Definitions for a census 2181d1be7aSGreg Roach */ 22*c1010edaSGreg Roachclass CensusOfUnitedStates1790 extends CensusOfUnitedStates implements CensusInterface 23*c1010edaSGreg Roach{ 2481d1be7aSGreg Roach /** 2581d1be7aSGreg Roach * When did this census occur. 2681d1be7aSGreg Roach * 2781d1be7aSGreg Roach * @return string 2881d1be7aSGreg Roach */ 29*c1010edaSGreg Roach public function censusDate() 30*c1010edaSGreg Roach { 3181d1be7aSGreg Roach return '02 AUG 1790'; 3281d1be7aSGreg Roach } 3381d1be7aSGreg Roach 3481d1be7aSGreg Roach /** 3581d1be7aSGreg Roach * The columns of the census. 3681d1be7aSGreg Roach * 3781d1be7aSGreg Roach * @return CensusColumnInterface[] 3881d1be7aSGreg Roach */ 39*c1010edaSGreg Roach public function columns() 40*c1010edaSGreg Roach { 4113abd6f3SGreg Roach return [ 423e615db9SGreg Roach new CensusColumnFullName($this, 'Name', 'Name of head of family'), 433e615db9SGreg Roach new CensusColumnOccupation($this, 'Occupation', 'Professions and occupation'), 443e615db9SGreg Roach new CensusColumnNull($this, 'White male 16+', 'White male of 16 yrs upward'), 453e615db9SGreg Roach new CensusColumnNull($this, 'White male 0-16', 'White males of under 16 yrs'), 463e615db9SGreg Roach new CensusColumnNull($this, 'White female', 'All White Females'), 473e615db9SGreg Roach new CensusColumnNull($this, 'Free', 'All other free persons'), 4881d1be7aSGreg Roach new CensusColumnNull($this, 'Slaves', 'Number of slaves'), 493e615db9SGreg Roach new CensusColumnNull($this, 'Total', 'Total'), 5013abd6f3SGreg Roach ]; 5181d1be7aSGreg Roach } 5281d1be7aSGreg Roach} 53