15df8e840SDavid Drury<?php 25df8e840SDavid Drury/** 35df8e840SDavid Drury * webtrees: online genealogy 4*1062a142SGreg 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 */ 225df8e840SDavid Druryclass RegisterOfWales1939 extends CensusOfWales implements CensusInterface { 235df8e840SDavid Drury /** 245df8e840SDavid Drury * When did this census occur. 255df8e840SDavid Drury * 265df8e840SDavid Drury * @return string 275df8e840SDavid Drury */ 285df8e840SDavid Drury public function censusDate() { 295df8e840SDavid Drury return '29 SEP 1939'; 305df8e840SDavid Drury } 315df8e840SDavid Drury 325df8e840SDavid Drury /** 335df8e840SDavid Drury * The columns of the census. 345df8e840SDavid Drury * 355df8e840SDavid Drury * @return CensusColumnInterface[] 365df8e840SDavid Drury */ 375df8e840SDavid Drury public function columns() { 3813abd6f3SGreg Roach return [ 395df8e840SDavid Drury new CensusColumnNull($this, 'Schedule', 'Schedule Number'), 405df8e840SDavid Drury new CensusColumnNull($this, 'SubNum', 'Schedule Sub Number'), 415df8e840SDavid Drury new CensusColumnSurnameGivenNames($this, 'Name', 'Surname & other names'), 42eb2a4ab4SDavid Drury new CensusColumnNull($this, 'Role', 'For institutions only – for example, Officer, Visitor, Servant, Patient, Inmate'), 43eb2a4ab4SDavid Drury new CensusColumnSexMF($this, 'Sex', 'Male or Female'), 44eb2a4ab4SDavid Drury new CensusColumnBirthDayMonthSlashYear($this, 'DOB', 'Date of birth'), 45eb2a4ab4SDavid Drury new CensusColumnConditionEnglish($this, 'MC', 'Marital Condition - Married, Single, Unmarried, Widowed or Divorced'), 466664b4a3SGreg Roach new CensusColumnOccupation($this, 'Occupation', 'Occupation'), 4713abd6f3SGreg Roach ]; 485df8e840SDavid Drury } 495df8e840SDavid Drury} 50