xref: /webtrees/app/Census/CensusOfCzechRepublic.php (revision d11be7027e34e3121be11cc025421873364403f9)
1c2a8c8bfSGreg Roach<?php
23976b470SGreg Roach
3c2a8c8bfSGreg Roach/**
4c2a8c8bfSGreg Roach * webtrees: online genealogy
5*d11be702SGreg Roach * Copyright (C) 2023 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
1589f7189bSGreg Roach * along with this program. If not, see <https://www.gnu.org/licenses/>.
16c2a8c8bfSGreg Roach */
17fcfa147eSGreg Roach
18e7f56f2aSGreg Roachdeclare(strict_types=1);
1915d603e7SGreg Roach
20c2a8c8bfSGreg Roachnamespace Fisharebest\Webtrees\Census;
21c2a8c8bfSGreg Roach
22c2a8c8bfSGreg Roach/**
23c2a8c8bfSGreg Roach * Definitions for a census
24c2a8c8bfSGreg Roach */
25c1010edaSGreg Roachclass CensusOfCzechRepublic extends Census implements CensusPlaceInterface
26c1010edaSGreg Roach{
27c2a8c8bfSGreg Roach    /**
28c2a8c8bfSGreg Roach     * All available censuses for this census place.
29c2a8c8bfSGreg Roach     *
3009482a55SGreg Roach     * @return array<CensusInterface>
31c2a8c8bfSGreg Roach     */
328f53f488SRico Sonntag    public function allCensusDates(): array
33c1010edaSGreg Roach    {
3413abd6f3SGreg Roach        return [
35c2a8c8bfSGreg Roach            new CensusOfCzechRepublic1880(),
36fbf0a249SGreg Roach            new CensusOfCzechRepublic1890(),
37fbf0a249SGreg Roach            new CensusOfCzechRepublic1900(),
38fbf0a249SGreg Roach            new CensusOfCzechRepublic1910(),
39c2a8c8bfSGreg Roach            new CensusOfCzechRepublic1921(),
4013abd6f3SGreg Roach        ];
41c2a8c8bfSGreg Roach    }
42c2a8c8bfSGreg Roach
43c2a8c8bfSGreg Roach    /**
44c2a8c8bfSGreg Roach     * Where did this census occur, in GEDCOM format.
45c2a8c8bfSGreg Roach     *
46c2a8c8bfSGreg Roach     * @return string
47c2a8c8bfSGreg Roach     */
488f53f488SRico Sonntag    public function censusPlace(): string
49c1010edaSGreg Roach    {
50c2a8c8bfSGreg Roach        return 'Česko';
51c2a8c8bfSGreg Roach    }
52d5b0584dSGreg Roach
53d5b0584dSGreg Roach    /**
54d5b0584dSGreg Roach     * In which language was this census written.
55d5b0584dSGreg Roach     *
56d5b0584dSGreg Roach     * @return string
57d5b0584dSGreg Roach     */
58d5b0584dSGreg Roach    public function censusLanguage(): string
59d5b0584dSGreg Roach    {
600a5e81f6SGreg Roach        return 'cs';
61d5b0584dSGreg Roach    }
62c2a8c8bfSGreg Roach}
63