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

CensusOfDeutschlandNL1867::censusPlace()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 3
Ratio 100 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 2
c 1
b 0
f 1
nc 1
nop 0
dl 3
loc 3
rs 10
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 View Code Duplication
class CensusOfDeutschlandNL1867 extends CensusOfDeutschland implements CensusInterface {
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
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 (Nachtragsliste), 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...r|CensusColumnReligion>.

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.'),
48
			new CensusColumnGivenNames($this, '2.Vorname', 'I. Vor- und Familienname jeder Person. Vorname.'),
49
			new CensusColumnSurname($this, '3.Familienname', 'I. Vor- und Familienname 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 CensusColumnNull($this, '12.StA_M-S', 'VI. Staatsangehörigkeit. Mecklenburg-Schwerinscher Unterthan.'),
59
			new CensusColumnNull($this, '13.StA', 'VI. Staatsangehörigkeit. Anderen Staaten angehörig. Welchem Staat?'),
60
			new CensusColumnNull($this, '14.', 'VII. Art des Abwesenheit vom Zählungsorte. Nicht über ein Jahr Abwesende als See- oder Flußschiffer.'),
61
			new CensusColumnNull($this, '15.', 'VII. Art des Abwesenheit vom Zählungsorte. Nicht über ein Jahr Abwesende auf Land- oder Seereisen.'),
62
			new CensusColumnNull($this, '16.', 'VII. Art des Abwesenheit vom Zählungsorte. Nicht über ein Jahr Abwesende auf Besuch außerhalb des Orts.'),
63
			new CensusColumnNull($this, '17.', 'VII. Art des Aufenthalts am Zählungsort. Ueber ein Jahr, oder in anderer Art als nach Spalte 14 bis 16 Abwesende.'),
64
			new CensusColumnNull($this, '18.Aufenthaltsort', 'VIII. Vermuthlicher Aufenthaltsort zur Zählungszeit.'),
65
		);
66
	}
67
}
68