15df8e840SDavid Drury<?php 23976b470SGreg Roach 35df8e840SDavid Drury/** 45df8e840SDavid Drury * webtrees: online genealogy 5*d11be702SGreg Roach * Copyright (C) 2023 webtrees development team 65df8e840SDavid Drury * This program is free software: you can redistribute it and/or modify 75df8e840SDavid Drury * it under the terms of the GNU General Public License as published by 85df8e840SDavid Drury * the Free Software Foundation, either version 3 of the License, or 95df8e840SDavid Drury * (at your option) any later version. 105df8e840SDavid Drury * This program is distributed in the hope that it will be useful, 115df8e840SDavid Drury * but WITHOUT ANY WARRANTY; without even the implied warranty of 125df8e840SDavid Drury * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 135df8e840SDavid Drury * GNU General Public License for more details. 145df8e840SDavid Drury * 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/>. 165df8e840SDavid Drury */ 17fcfa147eSGreg Roach 18e7f56f2aSGreg Roachdeclare(strict_types=1); 1915d603e7SGreg Roach 205df8e840SDavid Drurynamespace Fisharebest\Webtrees\Census; 215df8e840SDavid Drury 225df8e840SDavid Drury/** 235df8e840SDavid Drury * Definitions for a census 245df8e840SDavid Drury */ 25c1010edaSGreg Roachclass RegisterOfWales1939 extends CensusOfWales implements CensusInterface 26c1010edaSGreg Roach{ 275df8e840SDavid Drury /** 285df8e840SDavid Drury * When did this census occur. 295df8e840SDavid Drury * 305df8e840SDavid Drury * @return string 315df8e840SDavid Drury */ 328f53f488SRico Sonntag public function censusDate(): string 33c1010edaSGreg Roach { 345df8e840SDavid Drury return '29 SEP 1939'; 355df8e840SDavid Drury } 365df8e840SDavid Drury 375df8e840SDavid Drury /** 385df8e840SDavid Drury * The columns of the census. 395df8e840SDavid Drury * 4009482a55SGreg Roach * @return array<CensusColumnInterface> 415df8e840SDavid Drury */ 428f53f488SRico Sonntag public function columns(): array 43c1010edaSGreg Roach { 4413abd6f3SGreg Roach return [ 455df8e840SDavid Drury new CensusColumnNull($this, 'Schedule', 'Schedule Number'), 465df8e840SDavid Drury new CensusColumnNull($this, 'SubNum', 'Schedule Sub Number'), 475df8e840SDavid Drury new CensusColumnSurnameGivenNames($this, 'Name', 'Surname & other names'), 48eb2a4ab4SDavid Drury new CensusColumnNull($this, 'Role', 'For institutions only – for example, Officer, Visitor, Servant, Patient, Inmate'), 49eb2a4ab4SDavid Drury new CensusColumnSexMF($this, 'Sex', 'Male or Female'), 5028ae205eSDavid Drury new CensusColumnBirthDayMonthYear($this, 'DOB', 'Date of birth'), 51eb2a4ab4SDavid Drury new CensusColumnConditionEnglish($this, 'MC', 'Marital Condition - Married, Single, Unmarried, Widowed or Divorced'), 526664b4a3SGreg Roach new CensusColumnOccupation($this, 'Occupation', 'Occupation'), 5313abd6f3SGreg Roach ]; 545df8e840SDavid Drury } 555df8e840SDavid Drury} 56