xref: /webtrees/app/Census/CensusOfFrance1831.php (revision e7f56f2af615447ab1a7646851f88b465ace9e04)
1e2a6fd20Smikejpr<?php
2e2a6fd20Smikejpr/**
3e2a6fd20Smikejpr * webtrees: online genealogy
41062a142SGreg Roach * Copyright (C) 2018 webtrees development team
5e2a6fd20Smikejpr * This program is free software: you can redistribute it and/or modify
6e2a6fd20Smikejpr * it under the terms of the GNU General Public License as published by
7e2a6fd20Smikejpr * the Free Software Foundation, either version 3 of the License, or
8e2a6fd20Smikejpr * (at your option) any later version.
9e2a6fd20Smikejpr * This program is distributed in the hope that it will be useful,
10e2a6fd20Smikejpr * but WITHOUT ANY WARRANTY; without even the implied warranty of
11e2a6fd20Smikejpr * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12e2a6fd20Smikejpr * GNU General Public License for more details.
13e2a6fd20Smikejpr * You should have received a copy of the GNU General Public License
14e2a6fd20Smikejpr * along with this program. If not, see <http://www.gnu.org/licenses/>.
15e2a6fd20Smikejpr */
16*e7f56f2aSGreg Roachdeclare(strict_types=1);
1715d603e7SGreg Roach
18e2a6fd20Smikejprnamespace Fisharebest\Webtrees\Census;
19e2a6fd20Smikejpr
20e2a6fd20Smikejpr/**
21e2a6fd20Smikejpr * Definitions for a census
22e2a6fd20Smikejpr */
23c1010edaSGreg Roachclass CensusOfFrance1831 extends CensusOfFrance implements CensusInterface
24c1010edaSGreg Roach{
25e2a6fd20Smikejpr    /**
26e2a6fd20Smikejpr     * When did this census occur.
27e2a6fd20Smikejpr     *
28e2a6fd20Smikejpr     * @return string
29e2a6fd20Smikejpr     */
308f53f488SRico Sonntag    public function censusDate(): string
31c1010edaSGreg Roach    {
3273c569abSGreg Roach        return '20 JAN 1831';
33e2a6fd20Smikejpr    }
34e2a6fd20Smikejpr
35e2a6fd20Smikejpr    /**
36e2a6fd20Smikejpr     * The columns of the census.
37e2a6fd20Smikejpr     *
38e2a6fd20Smikejpr     * @return CensusColumnInterface[]
39e2a6fd20Smikejpr     */
408f53f488SRico Sonntag    public function columns(): array
41c1010edaSGreg Roach    {
4213abd6f3SGreg Roach        return [
4300225b98SGreg Roach            new CensusColumnSurname($this, 'Noms', 'Noms de famille'),
4400225b98SGreg Roach            new CensusColumnGivenNames($this, 'Prénoms', ''),
4500225b98SGreg Roach            new CensusColumnOccupation($this, 'Titres', 'Titres, qualifications, état ou profession et fonctions'),
4600225b98SGreg Roach            new CensusColumnConditionFrenchGarcon($this, 'Garçons', ''),
4700225b98SGreg Roach            new CensusColumnConditionFrenchHomme($this, 'Hommes', 'Hommes mariés'),
4800225b98SGreg Roach            new CensusColumnConditionFrenchVeuf($this, 'Veufs', ''),
4900225b98SGreg Roach            new CensusColumnConditionFrenchFille($this, 'Filles', ''),
5000225b98SGreg Roach            new CensusColumnConditionFrenchFemme($this, 'Femmes', 'Femmes mariées'),
5100225b98SGreg Roach            new CensusColumnConditionFrenchVeuve($this, 'Veuves', ''),
5200225b98SGreg Roach            new CensusColumnAge($this, 'Âge', ''),
5313abd6f3SGreg Roach        ];
54e2a6fd20Smikejpr    }
55e2a6fd20Smikejpr}
56