xref: /webtrees/app/Census/CensusOfSlovakia.php (revision d11be7027e34e3121be11cc025421873364403f9)
1c18c4744SGreg Roach<?php
2c18c4744SGreg Roach
3c18c4744SGreg Roach/**
4c18c4744SGreg Roach * webtrees: online genealogy
5*d11be702SGreg Roach * Copyright (C) 2023 webtrees development team
6c18c4744SGreg Roach * This program is free software: you can redistribute it and/or modify
7c18c4744SGreg Roach * it under the terms of the GNU General Public License as published by
8c18c4744SGreg Roach * the Free Software Foundation, either version 3 of the License, or
9c18c4744SGreg Roach * (at your option) any later version.
10c18c4744SGreg Roach * This program is distributed in the hope that it will be useful,
11c18c4744SGreg Roach * but WITHOUT ANY WARRANTY; without even the implied warranty of
12c18c4744SGreg Roach * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13c18c4744SGreg Roach * GNU General Public License for more details.
14c18c4744SGreg 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/>.
16c18c4744SGreg Roach */
17c18c4744SGreg Roach
185b8d8902SGreg Roachdeclare(strict_types=1);
195b8d8902SGreg Roach
20c18c4744SGreg Roachnamespace Fisharebest\Webtrees\Census;
21c18c4744SGreg Roach
22c18c4744SGreg Roach/**
23c18c4744SGreg Roach * Definitions for a census
24c18c4744SGreg Roach */
25c18c4744SGreg Roachclass CensusOfSlovakia extends Census implements CensusPlaceInterface
26c18c4744SGreg Roach{
27c18c4744SGreg Roach    /**
28c18c4744SGreg Roach     * All available censuses for this census place.
29c18c4744SGreg Roach     *
3009482a55SGreg Roach     * @return array<CensusInterface>
31c18c4744SGreg Roach     */
32c18c4744SGreg Roach    public function allCensusDates(): array
33c18c4744SGreg Roach    {
34c18c4744SGreg Roach        return [
35c18c4744SGreg Roach            new CensusOfSlovakia1869(),
36635bd26bSro-la            new CensusOfSlovakia1930(),
37635bd26bSro-la            new CensusOfSlovakia1940(),
38c18c4744SGreg Roach        ];
39c18c4744SGreg Roach    }
40c18c4744SGreg Roach
41c18c4744SGreg Roach    /**
42c18c4744SGreg Roach     * Where did this census occur, in GEDCOM format.
43c18c4744SGreg Roach     *
44c18c4744SGreg Roach     * @return string
45c18c4744SGreg Roach     */
46c18c4744SGreg Roach    public function censusPlace(): string
47c18c4744SGreg Roach    {
48c18c4744SGreg Roach        return 'Slovensko';
49c18c4744SGreg Roach    }
50d5b0584dSGreg Roach
51d5b0584dSGreg Roach    /**
52d5b0584dSGreg Roach     * In which language was this census written.
53d5b0584dSGreg Roach     *
54d5b0584dSGreg Roach     * @return string
55d5b0584dSGreg Roach     */
56d5b0584dSGreg Roach    public function censusLanguage(): string
57d5b0584dSGreg Roach    {
58d5b0584dSGreg Roach        return 'sk';
59d5b0584dSGreg Roach    }
60c18c4744SGreg Roach}
61