xref: /webtrees/app/Census/CensusOfUnitedStates1810.php (revision 89f7189b61a494347591c99bdb92afb7d8b66e1b)
181d1be7aSGreg Roach<?php
23976b470SGreg Roach
381d1be7aSGreg Roach/**
481d1be7aSGreg Roach * webtrees: online genealogy
5*89f7189bSGreg 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
15*89f7189bSGreg 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 CensusOfUnitedStates1810 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 '06 AUG 1810';
3581d1be7aSGreg Roach    }
3681d1be7aSGreg Roach
3781d1be7aSGreg Roach    /**
3881d1be7aSGreg Roach     * The columns of the census.
3981d1be7aSGreg Roach     *
4081d1be7aSGreg Roach     * @return 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-10', 'Free white males 0-10 years'),
473e615db9SGreg Roach            new CensusColumnNull($this, 'M10-16', 'Free white males 10-16 years'),
483e615db9SGreg Roach            new CensusColumnNull($this, 'M16-26', 'Free white males 16-26 years'),
493e615db9SGreg Roach            new CensusColumnNull($this, 'M26-45', 'Free white males 26-45 years'),
503e615db9SGreg Roach            new CensusColumnNull($this, 'M45+', 'Free white males 45+ years'),
513e615db9SGreg Roach            new CensusColumnNull($this, 'F0-10', 'Free white females 0-10 years'),
523e615db9SGreg Roach            new CensusColumnNull($this, 'F10-16', 'Free white females 10-16 years'),
533e615db9SGreg Roach            new CensusColumnNull($this, 'F16-26', 'Free white females 16-26 years'),
543e615db9SGreg Roach            new CensusColumnNull($this, 'F26-45', 'Free white females 26-45 years'),
553e615db9SGreg Roach            new CensusColumnNull($this, 'F45+', 'Free white females 45+ years'),
563e615db9SGreg Roach            new CensusColumnNull($this, 'Free', 'All other free persons, except Indians not taxed'),
5781d1be7aSGreg Roach            new CensusColumnNull($this, 'Slaves', 'Number of slaves'),
5881d1be7aSGreg Roach            new CensusColumnNull($this, 'Total', 'Total number of individuals'),
5981d1be7aSGreg Roach
6013abd6f3SGreg Roach        ];
6181d1be7aSGreg Roach    }
6281d1be7aSGreg Roach}
63