xref: /webtrees/app/Census/CensusOfCzechRepublic.php (revision 3976b4703df669696105ed6b024b96d433c8fbdb)
1c2a8c8bfSGreg Roach<?php
2*3976b470SGreg Roach
3c2a8c8bfSGreg Roach/**
4c2a8c8bfSGreg Roach * webtrees: online genealogy
58fcd0d32SGreg Roach * Copyright (C) 2019 webtrees development team
6c2a8c8bfSGreg Roach * This program is free software: you can redistribute it and/or modify
7c2a8c8bfSGreg Roach * it under the terms of the GNU General Public License as published by
8c2a8c8bfSGreg Roach * the Free Software Foundation, either version 3 of the License, or
9c2a8c8bfSGreg Roach * (at your option) any later version.
10c2a8c8bfSGreg Roach * This program is distributed in the hope that it will be useful,
11c2a8c8bfSGreg Roach * but WITHOUT ANY WARRANTY; without even the implied warranty of
12c2a8c8bfSGreg Roach * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13c2a8c8bfSGreg Roach * GNU General Public License for more details.
14c2a8c8bfSGreg Roach * You should have received a copy of the GNU General Public License
15c2a8c8bfSGreg Roach * along with this program. If not, see <http://www.gnu.org/licenses/>.
16c2a8c8bfSGreg Roach */
17e7f56f2aSGreg Roachdeclare(strict_types=1);
1815d603e7SGreg Roach
19c2a8c8bfSGreg Roachnamespace Fisharebest\Webtrees\Census;
20c2a8c8bfSGreg Roach
21c2a8c8bfSGreg Roach/**
22c2a8c8bfSGreg Roach * Definitions for a census
23c2a8c8bfSGreg Roach */
24c1010edaSGreg Roachclass CensusOfCzechRepublic extends Census implements CensusPlaceInterface
25c1010edaSGreg Roach{
26c2a8c8bfSGreg Roach    /**
27c2a8c8bfSGreg Roach     * All available censuses for this census place.
28c2a8c8bfSGreg Roach     *
29c2a8c8bfSGreg Roach     * @return CensusInterface[]
30c2a8c8bfSGreg Roach     */
318f53f488SRico Sonntag    public function allCensusDates(): array
32c1010edaSGreg Roach    {
3313abd6f3SGreg Roach        return [
34c2a8c8bfSGreg Roach            new CensusOfCzechRepublic1880(),
35fbf0a249SGreg Roach            new CensusOfCzechRepublic1890(),
36fbf0a249SGreg Roach            new CensusOfCzechRepublic1900(),
37fbf0a249SGreg Roach            new CensusOfCzechRepublic1910(),
38c2a8c8bfSGreg Roach            new CensusOfCzechRepublic1921(),
3913abd6f3SGreg Roach        ];
40c2a8c8bfSGreg Roach    }
41c2a8c8bfSGreg Roach
42c2a8c8bfSGreg Roach    /**
43c2a8c8bfSGreg Roach     * Where did this census occur, in GEDCOM format.
44c2a8c8bfSGreg Roach     *
45c2a8c8bfSGreg Roach     * @return string
46c2a8c8bfSGreg Roach     */
478f53f488SRico Sonntag    public function censusPlace(): string
48c1010edaSGreg Roach    {
49c2a8c8bfSGreg Roach        return 'Česko';
50c2a8c8bfSGreg Roach    }
51c2a8c8bfSGreg Roach}
52