xref: /webtrees/app/Census/CensusOfFrance1921.php (revision 8fcd0d32e56ee262912bbdb593202cfd1cbc1615)
166d72acfSmikejpr<?php
266d72acfSmikejpr/**
366d72acfSmikejpr * webtrees: online genealogy
4*8fcd0d32SGreg Roach * Copyright (C) 2019 webtrees development team
566d72acfSmikejpr * This program is free software: you can redistribute it and/or modify
666d72acfSmikejpr * it under the terms of the GNU General Public License as published by
766d72acfSmikejpr * the Free Software Foundation, either version 3 of the License, or
866d72acfSmikejpr * (at your option) any later version.
966d72acfSmikejpr * This program is distributed in the hope that it will be useful,
1066d72acfSmikejpr * but WITHOUT ANY WARRANTY; without even the implied warranty of
1166d72acfSmikejpr * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1266d72acfSmikejpr * GNU General Public License for more details.
1366d72acfSmikejpr * You should have received a copy of the GNU General Public License
1466d72acfSmikejpr * along with this program. If not, see <http://www.gnu.org/licenses/>.
1566d72acfSmikejpr */
16e7f56f2aSGreg Roachdeclare(strict_types=1);
1715d603e7SGreg Roach
1866d72acfSmikejprnamespace Fisharebest\Webtrees\Census;
1966d72acfSmikejpr
2066d72acfSmikejpr/**
2166d72acfSmikejpr * Definitions for a census
2266d72acfSmikejpr */
23c1010edaSGreg Roachclass CensusOfFrance1921 extends CensusOfFrance implements CensusInterface
24c1010edaSGreg Roach{
2566d72acfSmikejpr    /**
2666d72acfSmikejpr     * When did this census occur.
2766d72acfSmikejpr     *
2866d72acfSmikejpr     * @return string
2966d72acfSmikejpr     */
308f53f488SRico Sonntag    public function censusDate(): string
31c1010edaSGreg Roach    {
3273c569abSGreg Roach        return '20 JAN 1921';
3366d72acfSmikejpr    }
3466d72acfSmikejpr
3566d72acfSmikejpr    /**
3666d72acfSmikejpr     * The columns of the census.
3766d72acfSmikejpr     *
3866d72acfSmikejpr     * @return CensusColumnInterface[]
3966d72acfSmikejpr     */
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', ''),
4566d72acfSmikejpr            new CensusColumnBirthYear($this, 'Année', 'Année de naissance'),
4600225b98SGreg Roach            new CensusColumnBirthPlace($this, 'Lieu', 'Lieu de naissance'),
4700225b98SGreg Roach            new CensusColumnNationality($this, 'Nationalité', ''),
4800225b98SGreg Roach            new CensusColumnRelationToHead($this, 'Situation', 'Situation par rapport au chef de ménage'),
4900225b98SGreg Roach            new CensusColumnOccupation($this, 'Profession', ''),
5000225b98SGreg Roach            new CensusColumnNull($this, 'Empl', ''),
5113abd6f3SGreg Roach        ];
5266d72acfSmikejpr    }
5366d72acfSmikejpr}
54