xref: /webtrees/app/Census/CensusOfDenmark1940.php (revision d11be7027e34e3121be11cc025421873364403f9)
1101af0b4SGreg Roach<?php
23976b470SGreg Roach
3101af0b4SGreg Roach/**
4101af0b4SGreg Roach * webtrees: online genealogy
5*d11be702SGreg Roach * Copyright (C) 2023 webtrees development team
6101af0b4SGreg Roach * This program is free software: you can redistribute it and/or modify
7101af0b4SGreg Roach * it under the terms of the GNU General Public License as published by
8101af0b4SGreg Roach * the Free Software Foundation, either version 3 of the License, or
9101af0b4SGreg Roach * (at your option) any later version.
10101af0b4SGreg Roach * This program is distributed in the hope that it will be useful,
11101af0b4SGreg Roach * but WITHOUT ANY WARRANTY; without even the implied warranty of
12101af0b4SGreg Roach * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13101af0b4SGreg Roach * GNU General Public License for more details.
14101af0b4SGreg 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/>.
16101af0b4SGreg Roach */
17fcfa147eSGreg Roach
18e7f56f2aSGreg Roachdeclare(strict_types=1);
1915d603e7SGreg Roach
20101af0b4SGreg Roachnamespace Fisharebest\Webtrees\Census;
21101af0b4SGreg Roach
22101af0b4SGreg Roach/**
23101af0b4SGreg Roach * Definitions for a census
24101af0b4SGreg Roach */
25c1010edaSGreg Roachclass CensusOfDenmark1940 extends CensusOfDenmark implements CensusInterface
26c1010edaSGreg Roach{
27101af0b4SGreg Roach    /**
28101af0b4SGreg Roach     * When did this census occur.
29101af0b4SGreg Roach     *
30101af0b4SGreg Roach     * @return string
31101af0b4SGreg Roach     */
328f53f488SRico Sonntag    public function censusDate(): string
33c1010edaSGreg Roach    {
34e00dafa5SGreg Roach        return '05 NOV 1940';
35101af0b4SGreg Roach    }
36101af0b4SGreg Roach
37101af0b4SGreg Roach    /**
38101af0b4SGreg Roach     * The columns of the census.
39101af0b4SGreg Roach     *
4009482a55SGreg Roach     * @return array<CensusColumnInterface>
41101af0b4SGreg Roach     */
428f53f488SRico Sonntag    public function columns(): array
43c1010edaSGreg Roach    {
4413abd6f3SGreg Roach        return [
4597a7ec96SGreg Roach            new CensusColumnSurnameGivenNames($this, 'Navn', ''),
46e00dafa5SGreg Roach            new CensusColumnNull($this, 'Nærværende', 'Hvis den i Rubrik 1 opførte Person er midleritidg nærværende d.v.s. har fast Bopæl ????? (er optaget under en anden Address i Folkeregistret), anføres her den faste Bopæls Adresse (Kommunens Navn og den fuldstændige Adresse i denne; for Udlændinge dog kun Landets Navn).'),
47e00dafa5SGreg Roach            new CensusColumnNull($this, 'Fraværende', 'Hvis den i Rubrik 1 opførte Person er midleritidg fraværende d.v.s. har fast Bopæl paa Tællingsstedet (er optaget underdenne Address i Folkeregistret), men den 5. Novemer ikke er til Stede paa Tællingsstedet, anføres her „fraværende“ og Adressen paa det midlertidige Opholdssted (ved Ophold i Udlandet anføres jun Landets Navn).'),
48e00dafa5SGreg Roach            new CensusColumnSexMK($this, 'Køn', 'Køn Mand (M) Kvinde (K)'),
4997a7ec96SGreg Roach            new CensusColumnBirthDaySlashMonth($this, 'Fødselsdag', ''),
5097a7ec96SGreg Roach            new CensusColumnBirthYear($this, 'Fødselsaar', ''),
5197a7ec96SGreg Roach            new CensusColumnBirthPlace($this, 'Fødested', ''),
52de119d8eSGreg Roach            new CensusColumnNull($this, 'Statsborgerforhold', ''),
5397a7ec96SGreg Roach            new CensusColumnConditionDanish($this, 'Civilstand', 'Ægteskabelig Stillinge. Ugift (U), Gift (G), Enkemand eller Enke (E), Separeret (S), Fraskilt (F).'),
54e00dafa5SGreg Roach            new CensusColumnNull($this, 'Indgaaelse', 'Date for det nuværende Ægteskabs Indgaaelse. NB." RUbrikken udfyldes ikke al Enkemaend, Enker, Separerede eller Fraskilte.'),
5597a7ec96SGreg Roach            new CensusColumnRelationToHead($this, 'Stilling i familien', ''),
5697a7ec96SGreg Roach            new CensusColumnOccupation($this, 'Erhverv', ''),
57e00dafa5SGreg Roach            new CensusColumnNull($this, 'Virksomhedens', 'Virksomhedens (Branchens) Art'),
58e00dafa5SGreg Roach            new CensusColumnNull($this, 'Hustruen', 'Besvares kun af Hustruen og hjemmeboende Børn over 14 Aar'),
59e00dafa5SGreg Roach            new CensusColumnNull($this, 'Døtre', 'Besvares kun af hjemmeboende Døtre over 14 Aar'),
6013abd6f3SGreg Roach        ];
61101af0b4SGreg Roach    }
62101af0b4SGreg Roach}
63