xref: /webtrees/app/Census/CensusOfFrance1926.php (revision 3976b4703df669696105ed6b024b96d433c8fbdb)
1c1ace64bSmikejpr<?php
2*3976b470SGreg Roach
3c1ace64bSmikejpr/**
4c1ace64bSmikejpr * webtrees: online genealogy
58fcd0d32SGreg Roach * Copyright (C) 2019 webtrees development team
6c1ace64bSmikejpr * This program is free software: you can redistribute it and/or modify
7c1ace64bSmikejpr * it under the terms of the GNU General Public License as published by
8c1ace64bSmikejpr * the Free Software Foundation, either version 3 of the License, or
9c1ace64bSmikejpr * (at your option) any later version.
10c1ace64bSmikejpr * This program is distributed in the hope that it will be useful,
11c1ace64bSmikejpr * but WITHOUT ANY WARRANTY; without even the implied warranty of
12c1ace64bSmikejpr * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13c1ace64bSmikejpr * GNU General Public License for more details.
14c1ace64bSmikejpr * You should have received a copy of the GNU General Public License
15c1ace64bSmikejpr * along with this program. If not, see <http://www.gnu.org/licenses/>.
16c1ace64bSmikejpr */
17e7f56f2aSGreg Roachdeclare(strict_types=1);
1815d603e7SGreg Roach
19c1ace64bSmikejprnamespace Fisharebest\Webtrees\Census;
20c1ace64bSmikejpr
21c1ace64bSmikejpr/**
22c1ace64bSmikejpr * Definitions for a census
23c1ace64bSmikejpr */
24c1010edaSGreg Roachclass CensusOfFrance1926 extends CensusOfFrance implements CensusInterface
25c1010edaSGreg Roach{
26c1ace64bSmikejpr    /**
27c1ace64bSmikejpr     * When did this census occur.
28c1ace64bSmikejpr     *
29c1ace64bSmikejpr     * @return string
30c1ace64bSmikejpr     */
318f53f488SRico Sonntag    public function censusDate(): string
32c1010edaSGreg Roach    {
3373c569abSGreg Roach        return '21 JAN 1926';
34c1ace64bSmikejpr    }
35c1ace64bSmikejpr
36c1ace64bSmikejpr    /**
37c1ace64bSmikejpr     * The columns of the census.
38c1ace64bSmikejpr     *
39c1ace64bSmikejpr     * @return CensusColumnInterface[]
40c1ace64bSmikejpr     */
418f53f488SRico Sonntag    public function columns(): array
42c1010edaSGreg Roach    {
4313abd6f3SGreg Roach        return [
4400225b98SGreg Roach            new CensusColumnSurname($this, 'Noms', 'Noms de famille'),
4500225b98SGreg Roach            new CensusColumnGivenNames($this, 'Prénoms', ''),
46c1ace64bSmikejpr            new CensusColumnBirthYear($this, 'Année', 'Année de naissance'),
4770b62f9aSJonathan Jaubart            new CensusColumnBirthPlace($this, 'Lieu', 'Lieu de naissance'),
4800225b98SGreg Roach            new CensusColumnNationality($this, 'Nationalité', ''),
4970b62f9aSJonathan Jaubart            new CensusColumnRelationToHead($this, 'Situation', 'Situation par rapport au chef de ménage'),
5070b62f9aSJonathan Jaubart            new CensusColumnOccupation($this, 'Profession', ''),
5170b62f9aSJonathan Jaubart            new CensusColumnNull($this, 'Empl', ''),
5213abd6f3SGreg Roach        ];
53c1ace64bSmikejpr    }
54c1ace64bSmikejpr}
55