xref: /webtrees/app/Census/RegisterOfScotland1939.php (revision d3fc2f7aa310e5c9d8a3462e97e2f165cc9ec2f9)
1*d3fc2f7aSDavid Drury<?php
2*d3fc2f7aSDavid Drury
3*d3fc2f7aSDavid Drury/**
4*d3fc2f7aSDavid Drury * webtrees: online genealogy
5*d3fc2f7aSDavid Drury * Copyright (C) 2021 webtrees development team
6*d3fc2f7aSDavid Drury * This program is free software: you can redistribute it and/or modify
7*d3fc2f7aSDavid Drury * it under the terms of the GNU General Public License as published by
8*d3fc2f7aSDavid Drury * the Free Software Foundation, either version 3 of the License, or
9*d3fc2f7aSDavid Drury * (at your option) any later version.
10*d3fc2f7aSDavid Drury * This program is distributed in the hope that it will be useful,
11*d3fc2f7aSDavid Drury * but WITHOUT ANY WARRANTY; without even the implied warranty of
12*d3fc2f7aSDavid Drury * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13*d3fc2f7aSDavid Drury * GNU General Public License for more details.
14*d3fc2f7aSDavid Drury * You should have received a copy of the GNU General Public License
15*d3fc2f7aSDavid Drury * along with this program. If not, see <https://www.gnu.org/licenses/>.
16*d3fc2f7aSDavid Drury */
17*d3fc2f7aSDavid Drury
18*d3fc2f7aSDavid Drurydeclare(strict_types=1);
19*d3fc2f7aSDavid Drury
20*d3fc2f7aSDavid Drurynamespace Fisharebest\Webtrees\Census;
21*d3fc2f7aSDavid Drury
22*d3fc2f7aSDavid Drury/**
23*d3fc2f7aSDavid Drury * Definitions for a census
24*d3fc2f7aSDavid Drury */
25*d3fc2f7aSDavid Druryclass RegisterOfScotland1939 extends CensusOfScotland implements CensusInterface
26*d3fc2f7aSDavid Drury{
27*d3fc2f7aSDavid Drury    /**
28*d3fc2f7aSDavid Drury     * When did this census occur.
29*d3fc2f7aSDavid Drury     *
30*d3fc2f7aSDavid Drury     * @return string
31*d3fc2f7aSDavid Drury     */
32*d3fc2f7aSDavid Drury    public function censusDate(): string
33*d3fc2f7aSDavid Drury    {
34*d3fc2f7aSDavid Drury        return '29 SEP 1939';
35*d3fc2f7aSDavid Drury    }
36*d3fc2f7aSDavid Drury
37*d3fc2f7aSDavid Drury    /**
38*d3fc2f7aSDavid Drury     * The columns of the census.
39*d3fc2f7aSDavid Drury     *
40*d3fc2f7aSDavid Drury     * @return CensusColumnInterface[]
41*d3fc2f7aSDavid Drury     */
42*d3fc2f7aSDavid Drury    public function columns(): array
43*d3fc2f7aSDavid Drury    {
44*d3fc2f7aSDavid Drury        return [
45*d3fc2f7aSDavid Drury            new CensusColumnNull($this, 'Schedule', 'Schedule Number'),
46*d3fc2f7aSDavid Drury            new CensusColumnNull($this, 'SubNum', 'Schedule Sub Number'),
47*d3fc2f7aSDavid Drury            new CensusColumnSurnameGivenNames($this, 'Name', 'Surname & other names'),
48*d3fc2f7aSDavid Drury            new CensusColumnNull($this, 'Role', 'For institutions only – for example, Officer, Visitor, Servant, Patient, Inmate'),
49*d3fc2f7aSDavid Drury            new CensusColumnSexMF($this, 'Sex', 'Male or Female'),
50*d3fc2f7aSDavid Drury            new CensusColumnBirthDayMonthYear($this, 'DOB', 'Date of birth'),
51*d3fc2f7aSDavid Drury            new CensusColumnConditionEnglish($this, 'MC', 'Marital Condition - Married, Single, Unmarried, Widowed or Divorced'),
52*d3fc2f7aSDavid Drury            new CensusColumnOccupation($this, 'Occupation', 'Occupation'),
53*d3fc2f7aSDavid Drury        ];
54*d3fc2f7aSDavid Drury    }
55*d3fc2f7aSDavid Drury}
56