15df8e840SDavid Drury<?php 25df8e840SDavid Drury/** 35df8e840SDavid Drury * webtrees: online genealogy 4*6bdf7674SGreg Roach * Copyright (C) 2017 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 */ 165df8e840SDavid Drurynamespace Fisharebest\Webtrees\Census; 175df8e840SDavid Drury 185df8e840SDavid Drury/** 195df8e840SDavid Drury * Definitions for a census 205df8e840SDavid Drury */ 215df8e840SDavid Druryclass RegisterOfWales1939 extends CensusOfWales implements CensusInterface { 225df8e840SDavid Drury /** 235df8e840SDavid Drury * When did this census occur. 245df8e840SDavid Drury * 255df8e840SDavid Drury * @return string 265df8e840SDavid Drury */ 275df8e840SDavid Drury public function censusDate() { 285df8e840SDavid Drury return '29 SEP 1939'; 295df8e840SDavid Drury } 305df8e840SDavid Drury 315df8e840SDavid Drury /** 325df8e840SDavid Drury * The columns of the census. 335df8e840SDavid Drury * 345df8e840SDavid Drury * @return CensusColumnInterface[] 355df8e840SDavid Drury */ 365df8e840SDavid Drury public function columns() { 3713abd6f3SGreg Roach return [ 385df8e840SDavid Drury new CensusColumnNull($this, 'Schedule', 'Schedule Number'), 395df8e840SDavid Drury new CensusColumnNull($this, 'SubNum', 'Schedule Sub Number'), 405df8e840SDavid Drury new CensusColumnSurnameGivenNames($this, 'Name', 'Surname & other names'), 41eb2a4ab4SDavid Drury new CensusColumnNull($this, 'Role', 'For institutions only – for example, Officer, Visitor, Servant, Patient, Inmate'), 42eb2a4ab4SDavid Drury new CensusColumnSexMF($this, 'Sex', 'Male or Female'), 43eb2a4ab4SDavid Drury new CensusColumnBirthDayMonthSlashYear($this, 'DOB', 'Date of birth'), 44eb2a4ab4SDavid Drury new CensusColumnConditionEnglish($this, 'MC', 'Marital Condition - Married, Single, Unmarried, Widowed or Divorced'), 456664b4a3SGreg Roach new CensusColumnOccupation($this, 'Occupation', 'Occupation'), 4613abd6f3SGreg Roach ]; 475df8e840SDavid Drury } 485df8e840SDavid Drury} 49