xref: /webtrees/app/Census/CensusOfFrance1931.php (revision 3976b4703df669696105ed6b024b96d433c8fbdb)
19b75738bSmikejpr<?php
2*3976b470SGreg Roach
39b75738bSmikejpr/**
49b75738bSmikejpr * webtrees: online genealogy
58fcd0d32SGreg Roach * Copyright (C) 2019 webtrees development team
69b75738bSmikejpr * This program is free software: you can redistribute it and/or modify
79b75738bSmikejpr * it under the terms of the GNU General Public License as published by
89b75738bSmikejpr * the Free Software Foundation, either version 3 of the License, or
99b75738bSmikejpr * (at your option) any later version.
109b75738bSmikejpr * This program is distributed in the hope that it will be useful,
119b75738bSmikejpr * but WITHOUT ANY WARRANTY; without even the implied warranty of
129b75738bSmikejpr * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
139b75738bSmikejpr * GNU General Public License for more details.
149b75738bSmikejpr * You should have received a copy of the GNU General Public License
159b75738bSmikejpr * along with this program. If not, see <http://www.gnu.org/licenses/>.
169b75738bSmikejpr */
17e7f56f2aSGreg Roachdeclare(strict_types=1);
1815d603e7SGreg Roach
199b75738bSmikejprnamespace Fisharebest\Webtrees\Census;
209b75738bSmikejpr
219b75738bSmikejpr/**
229b75738bSmikejpr * Definitions for a census
239b75738bSmikejpr */
24c1010edaSGreg Roachclass CensusOfFrance1931 extends CensusOfFrance implements CensusInterface
25c1010edaSGreg Roach{
269b75738bSmikejpr    /**
279b75738bSmikejpr     * When did this census occur.
289b75738bSmikejpr     *
299b75738bSmikejpr     * @return string
309b75738bSmikejpr     */
318f53f488SRico Sonntag    public function censusDate(): string
32c1010edaSGreg Roach    {
3373c569abSGreg Roach        return '15 JAN 1931';
349b75738bSmikejpr    }
359b75738bSmikejpr
369b75738bSmikejpr    /**
379b75738bSmikejpr     * The columns of the census.
389b75738bSmikejpr     *
399b75738bSmikejpr     * @return CensusColumnInterface[]
409b75738bSmikejpr     */
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', ''),
469b75738bSmikejpr            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        ];
539b75738bSmikejpr    }
549b75738bSmikejpr}
55