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