xref: /webtrees/app/Census/RegisterOfWales1939.php (revision e7f56f2af615447ab1a7646851f88b465ace9e04)
15df8e840SDavid Drury<?php
25df8e840SDavid Drury/**
35df8e840SDavid Drury * webtrees: online genealogy
41062a142SGreg Roach * Copyright (C) 2018 webtrees development team
55df8e840SDavid Drury * This program is free software: you can redistribute it and/or modify
65df8e840SDavid Drury * it under the terms of the GNU General Public License as published by
75df8e840SDavid Drury * the Free Software Foundation, either version 3 of the License, or
85df8e840SDavid Drury * (at your option) any later version.
95df8e840SDavid Drury * This program is distributed in the hope that it will be useful,
105df8e840SDavid Drury * but WITHOUT ANY WARRANTY; without even the implied warranty of
115df8e840SDavid Drury * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
125df8e840SDavid Drury * GNU General Public License for more details.
135df8e840SDavid Drury * You should have received a copy of the GNU General Public License
145df8e840SDavid Drury * along with this program. If not, see <http://www.gnu.org/licenses/>.
155df8e840SDavid Drury */
16*e7f56f2aSGreg Roachdeclare(strict_types=1);
1715d603e7SGreg Roach
185df8e840SDavid Drurynamespace Fisharebest\Webtrees\Census;
195df8e840SDavid Drury
205df8e840SDavid Drury/**
215df8e840SDavid Drury * Definitions for a census
225df8e840SDavid Drury */
23c1010edaSGreg Roachclass RegisterOfWales1939 extends CensusOfWales implements CensusInterface
24c1010edaSGreg Roach{
255df8e840SDavid Drury    /**
265df8e840SDavid Drury     * When did this census occur.
275df8e840SDavid Drury     *
285df8e840SDavid Drury     * @return string
295df8e840SDavid Drury     */
308f53f488SRico Sonntag    public function censusDate(): string
31c1010edaSGreg Roach    {
325df8e840SDavid Drury        return '29 SEP 1939';
335df8e840SDavid Drury    }
345df8e840SDavid Drury
355df8e840SDavid Drury    /**
365df8e840SDavid Drury     * The columns of the census.
375df8e840SDavid Drury     *
385df8e840SDavid Drury     * @return CensusColumnInterface[]
395df8e840SDavid Drury     */
408f53f488SRico Sonntag    public function columns(): array
41c1010edaSGreg Roach    {
4213abd6f3SGreg Roach        return [
435df8e840SDavid Drury            new CensusColumnNull($this, 'Schedule', 'Schedule Number'),
445df8e840SDavid Drury            new CensusColumnNull($this, 'SubNum', 'Schedule Sub Number'),
455df8e840SDavid Drury            new CensusColumnSurnameGivenNames($this, 'Name', 'Surname & other names'),
46eb2a4ab4SDavid Drury            new CensusColumnNull($this, 'Role', 'For institutions only – for example, Officer, Visitor, Servant, Patient, Inmate'),
47eb2a4ab4SDavid Drury            new CensusColumnSexMF($this, 'Sex', 'Male or Female'),
48eb2a4ab4SDavid Drury            new CensusColumnBirthDayMonthSlashYear($this, 'DOB', 'Date of birth'),
49eb2a4ab4SDavid Drury            new CensusColumnConditionEnglish($this, 'MC', 'Marital Condition - Married, Single, Unmarried, Widowed or Divorced'),
506664b4a3SGreg Roach            new CensusColumnOccupation($this, 'Occupation', 'Occupation'),
5113abd6f3SGreg Roach        ];
525df8e840SDavid Drury    }
535df8e840SDavid Drury}
54