Completed
Push — develop ( 92b1f9...fa0ef8 )
by Greg
09:06
created

CensusOfDeutschland1867::columns()   B

Complexity

Conditions 1
Paths 1

Size

Total Lines 27
Code Lines 25

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 25
c 1
b 0
f 1
nc 1
nop 0
dl 0
loc 27
rs 8.8571
1
<?php
2
/**
3
 * webtrees: online genealogy
4
 * Copyright (C) 2015 webtrees development team
5
 * This program is free software: you can redistribute it and/or modify
6
 * it under the terms of the GNU General Public License as published by
7
 * the Free Software Foundation, either version 3 of the License, or
8
 * (at your option) any later version.
9
 * This program is distributed in the hope that it will be useful,
10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
 * GNU General Public License for more details.
13
 * You should have received a copy of the GNU General Public License
14
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15
 */
16
namespace Fisharebest\Webtrees\Census;
17
18
/**
19
 * Definitions for a census
20
 */
21
class CensusOfDeutschland1867 extends CensusOfDeutschland implements CensusInterface {
22
	/**
23
	 * When did this census occur.
24
	 *
25
	 * @return string
26
	 */
27
	public function censusDate() {
28
		return '03 DEC 1867';
29
	}
30
31
	/**
32
	 * Where did this census occur, in GEDCOM format.
33
	 *
34
	 * @return string
35
	 */
36
	public function censusPlace() {
37
		return 'Mecklenburg-Schwerin, Deutschland';
38
	}	
39
40
	/**
41
	 * The columns of the census.
42
	 *
43
	 * @return CensusColumnInterface[]
0 ignored issues
show
Documentation introduced by
Consider making the return type a bit more specific; maybe use array<CensusColumnNull|C...CensusColumnOccupation>.

This check looks for the generic type array as a return type and suggests a more specific type. This type is inferred from the actual code.

Loading history...
44
	 */
45
	public function columns() {
46
		return array(
47
			new CensusColumnNull($this, '1.Nr.', 'Ordnungs-Nummer (1-15).'),
48
			new CensusColumnGivenNames($this, '2.Vorname', 'I. Vor- und Familien-Name jeder Person. Vorname'),
49
			new CensusColumnSurname($this, '3.Familienname', 'I. Vor- und Familien-Name jeder Person. Familienname.'),
50
			new CensusColumnNull($this, '4.männlich', 'II. Geschlecht männlich.'),
51
			new CensusColumnNull($this, '5.weiblich', 'II. Geschlecht weiblich.'),
52
			new CensusColumnBirthYear($this, '6.Geburtsjahr', 'III. Alter.'),
53
			new CensusColumnReligion($this, '7.Religion', 'IV. Religionsbekenntnis.'),
54
			new CensusColumnNull($this, '8.ledig', 'V. Familienstand. ledig.'),
55
			new CensusColumnNull($this, '9.verehelicht', 'V. Familienstand. verehelicht.'),
56
			new CensusColumnNull($this, '10.verwittwet', 'V. Familienstand. verwittwet.'),
57
			new CensusColumnNull($this, '11.geschieden', 'V. Familienstand. geschieden.'),
58
			new CensusColumnRelationToHeadGerman($this, '12.Stellung', 'V. Familienstand. Verhältnis der Familienglieder zum Haushaltungsvorstand.'),
59
			new CensusColumnOccupation($this, '13.Stand/Beruf', 'VI. Stand, Beruf oder Vorbereitung zum Beruf, Arbeits- und Dienstverhältnis.'),
60
			new CensusColumnNull($this, '14.StA_M-S', 'VII. Staatsangehörigkeit. Mecklenburg-Schwerinscher Unterthan.'),
61
			new CensusColumnNull($this, '15.StA', 'VII. Staatsangehörigkeit. Anderen Staaten angehörig. Welchem Staat?'),
62
			new CensusColumnNull($this, '16.', 'VIII. Art des Aufenthalts am Zählungsort. Norddeutscher und Zollvereins- See- und Flußschiffer.'),
63
			new CensusColumnNull($this, '17.', 'VIII. Art des Aufenthalts am Zählungsort. Reisender im Gasthof.'),
64
			new CensusColumnNull($this, '18.', 'VIII. Art des Aufenthalts am Zählungsort. Gast der Familie (zum Besuch aus).'),
65
			new CensusColumnNull($this, '19.', 'VIII. Art des Aufenthalts am Zählungsort. Alle übrigen Anwesenden.'),
66
			new CensusColumnNull($this, '20.blind', 'IX. Besondere Mängel einzelner Individuen. blind auf beiden Augen.'),
67
			new CensusColumnNull($this, '21.taubstumm', 'IX. Besondere Mängel einzelner Individuen. taubstumm.'),
68
			new CensusColumnNull($this, '22.blödsinnig', 'IX. Besondere Mängel einzelner Individuen. blödsinnig.'),
69
			new CensusColumnNull($this, '23.irrsinnig', 'IX. Besondere Mängel einzelner Individuen. irrsinnig.'),
70
		);
71
	}
72
}
73