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 CensusOfUnitedStates1830 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 '01 JUN 1830'; 35 } 36 37 /** 38 * The columns of the census. 39 * 40 * @return array<CensusColumnInterface> 41 */ 42 public function columns(): array 43 { 44 return [ 45 new CensusColumnFullName($this, 'Name', 'Name of head of family'), 46 new CensusColumnNull($this, 'M0', 'Free white males 0-5 years'), 47 new CensusColumnNull($this, 'M5', 'Free white males 5-10 years'), 48 new CensusColumnNull($this, 'M10', 'Free white males 10-15 years'), 49 new CensusColumnNull($this, 'M15', 'Free white males 15-20 years'), 50 new CensusColumnNull($this, 'M20', 'Free white males 20-30 years'), 51 new CensusColumnNull($this, 'M30', 'Free white males 30-40 years'), 52 new CensusColumnNull($this, 'M40', 'Free white males 40-50 years'), 53 new CensusColumnNull($this, 'M50', 'Free white males 50-60 years'), 54 new CensusColumnNull($this, 'M60', 'Free white males 60-70 years'), 55 new CensusColumnNull($this, 'M70', 'Free white males 70-80 years'), 56 new CensusColumnNull($this, 'M80', 'Free white males 80-90 years'), 57 new CensusColumnNull($this, 'M90', 'Free white males 90-100 years'), 58 new CensusColumnNull($this, 'M100', 'Free white males 100+ years'), 59 new CensusColumnNull($this, 'F0', 'Free white females 0-5 years'), 60 new CensusColumnNull($this, 'F5', 'Free white females 5-10 years'), 61 new CensusColumnNull($this, 'F10', 'Free white females 10-15 years'), 62 new CensusColumnNull($this, 'F15', 'Free white females 15-20 years'), 63 new CensusColumnNull($this, 'F20', 'Free white females 20-30 years'), 64 new CensusColumnNull($this, 'F30', 'Free white females 30-40 years'), 65 new CensusColumnNull($this, 'F40', 'Free white females 40-50 years'), 66 new CensusColumnNull($this, 'F50', 'Free white females 50-60 years'), 67 new CensusColumnNull($this, 'F60', 'Free white females 60-70 years'), 68 new CensusColumnNull($this, 'F70', 'Free white females 70-80 years'), 69 new CensusColumnNull($this, 'F80', 'Free white females 80-90 years'), 70 new CensusColumnNull($this, 'F90', 'Free white females 90-100 years'), 71 new CensusColumnNull($this, 'F100', 'Free white females 100+ years'), 72 new CensusColumnNull($this, 'M0', 'Slave males 0-10 years'), 73 new CensusColumnNull($this, 'M10', 'Slave males 10-24 years'), 74 new CensusColumnNull($this, 'M24', 'Slave males 24-36 years'), 75 new CensusColumnNull($this, 'M36', 'Slave males 36-55 years'), 76 new CensusColumnNull($this, 'M55', 'Slave males 55-100 years'), 77 new CensusColumnNull($this, 'M100', 'Slave males 100+ years'), 78 new CensusColumnNull($this, 'F0', 'Slave females 0-10 years'), 79 new CensusColumnNull($this, 'F10', 'Slave females 10-24 years'), 80 new CensusColumnNull($this, 'F24', 'Slave females 24-36 years'), 81 new CensusColumnNull($this, 'F36', 'Slave females 36-55 years'), 82 new CensusColumnNull($this, 'F55', 'Slave females 55-100 years'), 83 new CensusColumnNull($this, 'F100', 'Slave females 100+ years'), 84 new CensusColumnNull($this, 'M0', 'Free colored males 0-10 years'), 85 new CensusColumnNull($this, 'M10', 'Free colored males 10-24 years'), 86 new CensusColumnNull($this, 'M24', 'Free colored males 24-36 years'), 87 new CensusColumnNull($this, 'M36', 'Free colored males 36-55 years'), 88 new CensusColumnNull($this, 'M55', 'Free colored males 55-100 years'), 89 new CensusColumnNull($this, 'M100', 'Free colored males 100+ years'), 90 new CensusColumnNull($this, 'F0', 'Free colored females 0-10 years'), 91 new CensusColumnNull($this, 'F10', 'Free colored females 10-24 years'), 92 new CensusColumnNull($this, 'F24', 'Free colored females 24-36 years'), 93 new CensusColumnNull($this, 'F36', 'Free colored females 36-55 years'), 94 new CensusColumnNull($this, 'F55', 'Free colored females 55-100 years'), 95 new CensusColumnNull($this, 'F100', 'Free colored females 100+ years'), 96 ]; 97 } 98} 99