xref: /webtrees/app/Census/CensusOfUnitedStates1830.php (revision 09482a558a7989d76059e7f9911605cf836b77ba)
181d1be7aSGreg Roach<?php
23976b470SGreg Roach
381d1be7aSGreg Roach/**
481d1be7aSGreg Roach * webtrees: online genealogy
589f7189bSGreg Roach * Copyright (C) 2021 webtrees development team
681d1be7aSGreg Roach * This program is free software: you can redistribute it and/or modify
781d1be7aSGreg Roach * it under the terms of the GNU General Public License as published by
881d1be7aSGreg Roach * the Free Software Foundation, either version 3 of the License, or
981d1be7aSGreg Roach * (at your option) any later version.
1081d1be7aSGreg Roach * This program is distributed in the hope that it will be useful,
1181d1be7aSGreg Roach * but WITHOUT ANY WARRANTY; without even the implied warranty of
1281d1be7aSGreg Roach * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1381d1be7aSGreg Roach * GNU General Public License for more details.
1481d1be7aSGreg 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/>.
1681d1be7aSGreg Roach */
17fcfa147eSGreg Roach
18e7f56f2aSGreg Roachdeclare(strict_types=1);
1915d603e7SGreg Roach
2081d1be7aSGreg Roachnamespace Fisharebest\Webtrees\Census;
2181d1be7aSGreg Roach
2281d1be7aSGreg Roach/**
2381d1be7aSGreg Roach * Definitions for a census
2481d1be7aSGreg Roach */
25c1010edaSGreg Roachclass CensusOfUnitedStates1830 extends CensusOfUnitedStates implements CensusInterface
26c1010edaSGreg Roach{
2781d1be7aSGreg Roach    /**
2881d1be7aSGreg Roach     * When did this census occur.
2981d1be7aSGreg Roach     *
3081d1be7aSGreg Roach     * @return string
3181d1be7aSGreg Roach     */
328f53f488SRico Sonntag    public function censusDate(): string
33c1010edaSGreg Roach    {
3481d1be7aSGreg Roach        return '01 JUN 1830';
3581d1be7aSGreg Roach    }
3681d1be7aSGreg Roach
3781d1be7aSGreg Roach    /**
3881d1be7aSGreg Roach     * The columns of the census.
3981d1be7aSGreg Roach     *
40*09482a55SGreg Roach     * @return array<CensusColumnInterface>
4181d1be7aSGreg Roach     */
428f53f488SRico Sonntag    public function columns(): array
43c1010edaSGreg Roach    {
4413abd6f3SGreg Roach        return [
453e615db9SGreg Roach            new CensusColumnFullName($this, 'Name', 'Name of head of family'),
463e615db9SGreg Roach            new CensusColumnNull($this, 'M0', 'Free white males 0-5 years'),
473e615db9SGreg Roach            new CensusColumnNull($this, 'M5', 'Free white males 5-10 years'),
483e615db9SGreg Roach            new CensusColumnNull($this, 'M10', 'Free white males 10-15 years'),
493e615db9SGreg Roach            new CensusColumnNull($this, 'M15', 'Free white males 15-20 years'),
503e615db9SGreg Roach            new CensusColumnNull($this, 'M20', 'Free white males 20-30 years'),
513e615db9SGreg Roach            new CensusColumnNull($this, 'M30', 'Free white males 30-40 years'),
523e615db9SGreg Roach            new CensusColumnNull($this, 'M40', 'Free white males 40-50 years'),
533e615db9SGreg Roach            new CensusColumnNull($this, 'M50', 'Free white males 50-60 years'),
543e615db9SGreg Roach            new CensusColumnNull($this, 'M60', 'Free white males 60-70 years'),
553e615db9SGreg Roach            new CensusColumnNull($this, 'M70', 'Free white males 70-80 years'),
563e615db9SGreg Roach            new CensusColumnNull($this, 'M80', 'Free white males 80-90 years'),
573e615db9SGreg Roach            new CensusColumnNull($this, 'M90', 'Free white males 90-100 years'),
583e615db9SGreg Roach            new CensusColumnNull($this, 'M100', 'Free white males 100+ years'),
593e615db9SGreg Roach            new CensusColumnNull($this, 'F0', 'Free white females 0-5 years'),
603e615db9SGreg Roach            new CensusColumnNull($this, 'F5', 'Free white females 5-10 years'),
613e615db9SGreg Roach            new CensusColumnNull($this, 'F10', 'Free white females 10-15 years'),
623e615db9SGreg Roach            new CensusColumnNull($this, 'F15', 'Free white females 15-20 years'),
633e615db9SGreg Roach            new CensusColumnNull($this, 'F20', 'Free white females 20-30 years'),
643e615db9SGreg Roach            new CensusColumnNull($this, 'F30', 'Free white females 30-40 years'),
653e615db9SGreg Roach            new CensusColumnNull($this, 'F40', 'Free white females 40-50 years'),
663e615db9SGreg Roach            new CensusColumnNull($this, 'F50', 'Free white females 50-60 years'),
673e615db9SGreg Roach            new CensusColumnNull($this, 'F60', 'Free white females 60-70 years'),
683e615db9SGreg Roach            new CensusColumnNull($this, 'F70', 'Free white females 70-80 years'),
693e615db9SGreg Roach            new CensusColumnNull($this, 'F80', 'Free white females 80-90 years'),
703e615db9SGreg Roach            new CensusColumnNull($this, 'F90', 'Free white females 90-100 years'),
713e615db9SGreg Roach            new CensusColumnNull($this, 'F100', 'Free white females 100+ years'),
723e615db9SGreg Roach            new CensusColumnNull($this, 'M0', 'Slave males 0-10 years'),
733e615db9SGreg Roach            new CensusColumnNull($this, 'M10', 'Slave males 10-24 years'),
743e615db9SGreg Roach            new CensusColumnNull($this, 'M24', 'Slave males 24-36 years'),
753e615db9SGreg Roach            new CensusColumnNull($this, 'M36', 'Slave males 36-55 years'),
763e615db9SGreg Roach            new CensusColumnNull($this, 'M55', 'Slave males 55-100 years'),
773e615db9SGreg Roach            new CensusColumnNull($this, 'M100', 'Slave males 100+ years'),
783e615db9SGreg Roach            new CensusColumnNull($this, 'F0', 'Slave females 0-10 years'),
793e615db9SGreg Roach            new CensusColumnNull($this, 'F10', 'Slave females 10-24 years'),
803e615db9SGreg Roach            new CensusColumnNull($this, 'F24', 'Slave females 24-36 years'),
813e615db9SGreg Roach            new CensusColumnNull($this, 'F36', 'Slave females 36-55 years'),
823e615db9SGreg Roach            new CensusColumnNull($this, 'F55', 'Slave females 55-100 years'),
833e615db9SGreg Roach            new CensusColumnNull($this, 'F100', 'Slave females 100+ years'),
843e615db9SGreg Roach            new CensusColumnNull($this, 'M0', 'Free colored males 0-10 years'),
853e615db9SGreg Roach            new CensusColumnNull($this, 'M10', 'Free colored males 10-24 years'),
863e615db9SGreg Roach            new CensusColumnNull($this, 'M24', 'Free colored males 24-36 years'),
873e615db9SGreg Roach            new CensusColumnNull($this, 'M36', 'Free colored males 36-55 years'),
883e615db9SGreg Roach            new CensusColumnNull($this, 'M55', 'Free colored males 55-100 years'),
893e615db9SGreg Roach            new CensusColumnNull($this, 'M100', 'Free colored males 100+ years'),
903e615db9SGreg Roach            new CensusColumnNull($this, 'F0', 'Free colored females 0-10 years'),
913e615db9SGreg Roach            new CensusColumnNull($this, 'F10', 'Free colored females 10-24 years'),
923e615db9SGreg Roach            new CensusColumnNull($this, 'F24', 'Free colored females 24-36 years'),
933e615db9SGreg Roach            new CensusColumnNull($this, 'F36', 'Free colored females 36-55 years'),
943e615db9SGreg Roach            new CensusColumnNull($this, 'F55', 'Free colored females 55-100 years'),
953e615db9SGreg Roach            new CensusColumnNull($this, 'F100', 'Free colored females 100+ years'),
9613abd6f3SGreg Roach        ];
9781d1be7aSGreg Roach    }
9881d1be7aSGreg Roach}
99