xref: /webtrees/app/Census/RegisterOfEngland1939.php (revision c1010eda29c0909ed4d5d463f32d32bfefdd4dfe)
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 */
1615d603e7SGreg Roach
175df8e840SDavid Drurynamespace Fisharebest\Webtrees\Census;
185df8e840SDavid Drury
195df8e840SDavid Drury/**
205df8e840SDavid Drury * Definitions for a census
215df8e840SDavid Drury */
22*c1010edaSGreg Roachclass RegisterOfEngland1939 extends CensusOfEngland implements CensusInterface
23*c1010edaSGreg Roach{
245df8e840SDavid Drury    /**
255df8e840SDavid Drury     * When did this census occur.
265df8e840SDavid Drury     *
275df8e840SDavid Drury     * @return string
285df8e840SDavid Drury     */
29*c1010edaSGreg Roach    public function censusDate()
30*c1010edaSGreg Roach    {
315df8e840SDavid Drury        return '29 SEP 1939';
325df8e840SDavid Drury    }
335df8e840SDavid Drury
345df8e840SDavid Drury    /**
355df8e840SDavid Drury     * The columns of the census.
365df8e840SDavid Drury     *
375df8e840SDavid Drury     * @return CensusColumnInterface[]
385df8e840SDavid Drury     */
39*c1010edaSGreg Roach    public function columns()
40*c1010edaSGreg Roach    {
4113abd6f3SGreg Roach        return [
425df8e840SDavid Drury            new CensusColumnNull($this, 'Schedule', 'Schedule Number'),
435df8e840SDavid Drury            new CensusColumnNull($this, 'SubNum', 'Schedule Sub Number'),
445df8e840SDavid Drury            new CensusColumnSurnameGivenNames($this, 'Name', 'Surname & other names'),
45eb2a4ab4SDavid Drury            new CensusColumnNull($this, 'Role', 'For institutions only – for example, Officer, Visitor, Servant, Patient, Inmate'),
46eb2a4ab4SDavid Drury            new CensusColumnSexMF($this, 'Sex', 'Male or Female'),
47eb2a4ab4SDavid Drury            new CensusColumnBirthDayMonthSlashYear($this, 'DOB', 'Date of birth'),
48eb2a4ab4SDavid Drury            new CensusColumnConditionEnglish($this, 'MC', 'Marital Condition - Married, Single, Unmarried, Widowed or Divorced'),
496664b4a3SGreg Roach            new CensusColumnOccupation($this, 'Occupation', 'Occupation'),
5013abd6f3SGreg Roach        ];
515df8e840SDavid Drury    }
525df8e840SDavid Drury}
53