@@ -19,38 +19,38 @@ |
||
19 | 19 | * Definitions for a census |
20 | 20 | */ |
21 | 21 | class CensusOfUnitedStates extends Census implements CensusPlaceInterface { |
22 | - /** |
|
23 | - * All available censuses for this census place. |
|
24 | - * |
|
25 | - * @return CensusInterface[] |
|
26 | - */ |
|
27 | - public function allCensusDates() { |
|
28 | - return array( |
|
29 | - new CensusOfUnitedStates1790(), |
|
30 | - new CensusOfUnitedStates1800(), |
|
31 | - new CensusOfUnitedStates1810(), |
|
32 | - new CensusOfUnitedStates1820(), |
|
33 | - new CensusOfUnitedStates1830(), |
|
34 | - new CensusOfUnitedStates1840(), |
|
35 | - new CensusOfUnitedStates1850(), |
|
36 | - new CensusOfUnitedStates1860(), |
|
37 | - new CensusOfUnitedStates1870(), |
|
38 | - new CensusOfUnitedStates1880(), |
|
39 | - new CensusOfUnitedStates1890(), |
|
40 | - new CensusOfUnitedStates1900(), |
|
41 | - new CensusOfUnitedStates1910(), |
|
42 | - new CensusOfUnitedStates1920(), |
|
43 | - new CensusOfUnitedStates1930(), |
|
44 | - new CensusOfUnitedStates1940(), |
|
45 | - ); |
|
46 | - } |
|
22 | + /** |
|
23 | + * All available censuses for this census place. |
|
24 | + * |
|
25 | + * @return CensusInterface[] |
|
26 | + */ |
|
27 | + public function allCensusDates() { |
|
28 | + return array( |
|
29 | + new CensusOfUnitedStates1790(), |
|
30 | + new CensusOfUnitedStates1800(), |
|
31 | + new CensusOfUnitedStates1810(), |
|
32 | + new CensusOfUnitedStates1820(), |
|
33 | + new CensusOfUnitedStates1830(), |
|
34 | + new CensusOfUnitedStates1840(), |
|
35 | + new CensusOfUnitedStates1850(), |
|
36 | + new CensusOfUnitedStates1860(), |
|
37 | + new CensusOfUnitedStates1870(), |
|
38 | + new CensusOfUnitedStates1880(), |
|
39 | + new CensusOfUnitedStates1890(), |
|
40 | + new CensusOfUnitedStates1900(), |
|
41 | + new CensusOfUnitedStates1910(), |
|
42 | + new CensusOfUnitedStates1920(), |
|
43 | + new CensusOfUnitedStates1930(), |
|
44 | + new CensusOfUnitedStates1940(), |
|
45 | + ); |
|
46 | + } |
|
47 | 47 | |
48 | - /** |
|
49 | - * Where did this census occur, in GEDCOM format. |
|
50 | - * |
|
51 | - * @return string |
|
52 | - */ |
|
53 | - public function censusPlace() { |
|
54 | - return 'United States'; |
|
55 | - } |
|
48 | + /** |
|
49 | + * Where did this census occur, in GEDCOM format. |
|
50 | + * |
|
51 | + * @return string |
|
52 | + */ |
|
53 | + public function censusPlace() { |
|
54 | + return 'United States'; |
|
55 | + } |
|
56 | 56 | } |
@@ -18,13 +18,15 @@ discard block |
||
18 | 18 | /** |
19 | 19 | * Definitions for a census |
20 | 20 | */ |
21 | -class CensusOfUnitedStates extends Census implements CensusPlaceInterface { |
|
21 | +class CensusOfUnitedStates extends Census implements CensusPlaceInterface |
|
22 | +{ |
|
22 | 23 | /** |
23 | 24 | * All available censuses for this census place. |
24 | 25 | * |
25 | 26 | * @return CensusInterface[] |
26 | 27 | */ |
27 | - public function allCensusDates() { |
|
28 | + public function allCensusDates() |
|
29 | + { |
|
28 | 30 | return array( |
29 | 31 | new CensusOfUnitedStates1790(), |
30 | 32 | new CensusOfUnitedStates1800(), |
@@ -50,7 +52,8 @@ discard block |
||
50 | 52 | * |
51 | 53 | * @return string |
52 | 54 | */ |
53 | - public function censusPlace() { |
|
55 | + public function censusPlace() |
|
56 | + { |
|
54 | 57 | return 'United States'; |
55 | 58 | } |
56 | 59 | } |
@@ -19,30 +19,30 @@ |
||
19 | 19 | * Definitions for a census |
20 | 20 | */ |
21 | 21 | class CensusOfFrance1906 extends CensusOfFrance implements CensusInterface { |
22 | - /** |
|
23 | - * When did this census occur. |
|
24 | - * |
|
25 | - * @return string |
|
26 | - */ |
|
27 | - public function censusDate() { |
|
28 | - return '18 JAN 1906'; |
|
29 | - } |
|
22 | + /** |
|
23 | + * When did this census occur. |
|
24 | + * |
|
25 | + * @return string |
|
26 | + */ |
|
27 | + public function censusDate() { |
|
28 | + return '18 JAN 1906'; |
|
29 | + } |
|
30 | 30 | |
31 | - /** |
|
32 | - * The columns of the census. |
|
33 | - * |
|
34 | - * @return CensusColumnInterface[] |
|
35 | - */ |
|
36 | - public function columns() { |
|
37 | - return array( |
|
38 | - new CensusColumnSurname($this, 'Noms', 'Noms de famille'), |
|
39 | - new CensusColumnGivenNames($this, 'Prénoms', ''), |
|
40 | - new CensusColumnBirthYear($this, 'Année', 'Année de naissance'), |
|
41 | - new CensusColumnBirthPlace($this, 'Lieu', 'Lieu de naissance'), |
|
42 | - new CensusColumnNationality($this, 'Nationalité', ''), |
|
43 | - new CensusColumnRelationToHead($this, 'Situation', 'Situation par rapport au chef de ménage'), |
|
44 | - new CensusColumnOccupation($this, 'Profession', ''), |
|
45 | - new CensusColumnNull($this, 'Empl', ''), |
|
46 | - ); |
|
47 | - } |
|
31 | + /** |
|
32 | + * The columns of the census. |
|
33 | + * |
|
34 | + * @return CensusColumnInterface[] |
|
35 | + */ |
|
36 | + public function columns() { |
|
37 | + return array( |
|
38 | + new CensusColumnSurname($this, 'Noms', 'Noms de famille'), |
|
39 | + new CensusColumnGivenNames($this, 'Prénoms', ''), |
|
40 | + new CensusColumnBirthYear($this, 'Année', 'Année de naissance'), |
|
41 | + new CensusColumnBirthPlace($this, 'Lieu', 'Lieu de naissance'), |
|
42 | + new CensusColumnNationality($this, 'Nationalité', ''), |
|
43 | + new CensusColumnRelationToHead($this, 'Situation', 'Situation par rapport au chef de ménage'), |
|
44 | + new CensusColumnOccupation($this, 'Profession', ''), |
|
45 | + new CensusColumnNull($this, 'Empl', ''), |
|
46 | + ); |
|
47 | + } |
|
48 | 48 | } |
@@ -18,13 +18,15 @@ discard block |
||
18 | 18 | /** |
19 | 19 | * Definitions for a census |
20 | 20 | */ |
21 | -class CensusOfFrance1906 extends CensusOfFrance implements CensusInterface { |
|
21 | +class CensusOfFrance1906 extends CensusOfFrance implements CensusInterface |
|
22 | +{ |
|
22 | 23 | /** |
23 | 24 | * When did this census occur. |
24 | 25 | * |
25 | 26 | * @return string |
26 | 27 | */ |
27 | - public function censusDate() { |
|
28 | + public function censusDate() |
|
29 | + { |
|
28 | 30 | return '18 JAN 1906'; |
29 | 31 | } |
30 | 32 | |
@@ -33,7 +35,8 @@ discard block |
||
33 | 35 | * |
34 | 36 | * @return CensusColumnInterface[] |
35 | 37 | */ |
36 | - public function columns() { |
|
38 | + public function columns() |
|
39 | + { |
|
37 | 40 | return array( |
38 | 41 | new CensusColumnSurname($this, 'Noms', 'Noms de famille'), |
39 | 42 | new CensusColumnGivenNames($this, 'Prénoms', ''), |
@@ -19,23 +19,23 @@ |
||
19 | 19 | * Marital status. |
20 | 20 | */ |
21 | 21 | class CensusColumnConditionFrenchFemme extends AbstractCensusColumnCondition { |
22 | - /* Text to display for married individuals */ |
|
23 | - protected $husband = ''; |
|
24 | - protected $wife = '1'; |
|
22 | + /* Text to display for married individuals */ |
|
23 | + protected $husband = ''; |
|
24 | + protected $wife = '1'; |
|
25 | 25 | |
26 | - /* Text to display for unmarried individuals */ |
|
27 | - protected $bachelor = ''; |
|
28 | - protected $spinster = ''; |
|
26 | + /* Text to display for unmarried individuals */ |
|
27 | + protected $bachelor = ''; |
|
28 | + protected $spinster = ''; |
|
29 | 29 | |
30 | - /* Text to display for children */ |
|
31 | - protected $boy = ''; |
|
32 | - protected $girl = ''; |
|
30 | + /* Text to display for children */ |
|
31 | + protected $boy = ''; |
|
32 | + protected $girl = ''; |
|
33 | 33 | |
34 | - /* Text to display for divorced individuals */ |
|
35 | - protected $divorce = ''; |
|
36 | - protected $divorcee = '1'; |
|
34 | + /* Text to display for divorced individuals */ |
|
35 | + protected $divorce = ''; |
|
36 | + protected $divorcee = '1'; |
|
37 | 37 | |
38 | - /* Text to display for widowed individuals (not yet implemented) */ |
|
39 | - protected $widower = ''; |
|
40 | - protected $widow = ''; |
|
38 | + /* Text to display for widowed individuals (not yet implemented) */ |
|
39 | + protected $widower = ''; |
|
40 | + protected $widow = ''; |
|
41 | 41 | } |
@@ -18,7 +18,8 @@ |
||
18 | 18 | /** |
19 | 19 | * Marital status. |
20 | 20 | */ |
21 | -class CensusColumnConditionFrenchFemme extends AbstractCensusColumnCondition { |
|
21 | +class CensusColumnConditionFrenchFemme extends AbstractCensusColumnCondition |
|
22 | +{ |
|
22 | 23 | /* Text to display for married individuals */ |
23 | 24 | protected $husband = ''; |
24 | 25 | protected $wife = '1'; |
@@ -19,31 +19,31 @@ |
||
19 | 19 | * Definitions for a census |
20 | 20 | */ |
21 | 21 | class CensusOfScotland1861 extends CensusOfScotland implements CensusInterface { |
22 | - /** |
|
23 | - * When did this census occur. |
|
24 | - * |
|
25 | - * @return string |
|
26 | - */ |
|
27 | - public function censusDate() { |
|
28 | - return '07 APR 1861'; |
|
29 | - } |
|
22 | + /** |
|
23 | + * When did this census occur. |
|
24 | + * |
|
25 | + * @return string |
|
26 | + */ |
|
27 | + public function censusDate() { |
|
28 | + return '07 APR 1861'; |
|
29 | + } |
|
30 | 30 | |
31 | - /** |
|
32 | - * The columns of the census. |
|
33 | - * |
|
34 | - * @return CensusColumnInterface[] |
|
35 | - */ |
|
36 | - public function columns() { |
|
37 | - return array( |
|
38 | - new CensusColumnFullName($this, 'Name', 'Name and surname'), |
|
39 | - new CensusColumnRelationToHead($this, 'Relation', 'Relation to head of household'), |
|
40 | - new CensusColumnConditionEnglish($this, 'Condition', 'Condition'), |
|
41 | - new CensusColumnAgeMale($this, 'AgeM', 'Age (males)'), |
|
42 | - new CensusColumnAgeFemale($this, 'AgeF', 'Age (females)'), |
|
43 | - new CensusColumnOccupation($this, 'Occupation', 'Rank, profession or occupation'), |
|
44 | - new CensusColumnBirthPlace($this, 'Birthplace', 'Where born'), |
|
45 | - new CensusColumnNull($this, 'Infirm', 'Whether blind or deaf-and-dumb'), |
|
46 | - new CensusColumnNull($this, 'School', 'Number of children between 5 and 13 attending school'), |
|
47 | - ); |
|
48 | - } |
|
31 | + /** |
|
32 | + * The columns of the census. |
|
33 | + * |
|
34 | + * @return CensusColumnInterface[] |
|
35 | + */ |
|
36 | + public function columns() { |
|
37 | + return array( |
|
38 | + new CensusColumnFullName($this, 'Name', 'Name and surname'), |
|
39 | + new CensusColumnRelationToHead($this, 'Relation', 'Relation to head of household'), |
|
40 | + new CensusColumnConditionEnglish($this, 'Condition', 'Condition'), |
|
41 | + new CensusColumnAgeMale($this, 'AgeM', 'Age (males)'), |
|
42 | + new CensusColumnAgeFemale($this, 'AgeF', 'Age (females)'), |
|
43 | + new CensusColumnOccupation($this, 'Occupation', 'Rank, profession or occupation'), |
|
44 | + new CensusColumnBirthPlace($this, 'Birthplace', 'Where born'), |
|
45 | + new CensusColumnNull($this, 'Infirm', 'Whether blind or deaf-and-dumb'), |
|
46 | + new CensusColumnNull($this, 'School', 'Number of children between 5 and 13 attending school'), |
|
47 | + ); |
|
48 | + } |
|
49 | 49 | } |
@@ -18,13 +18,15 @@ discard block |
||
18 | 18 | /** |
19 | 19 | * Definitions for a census |
20 | 20 | */ |
21 | -class CensusOfScotland1861 extends CensusOfScotland implements CensusInterface { |
|
21 | +class CensusOfScotland1861 extends CensusOfScotland implements CensusInterface |
|
22 | +{ |
|
22 | 23 | /** |
23 | 24 | * When did this census occur. |
24 | 25 | * |
25 | 26 | * @return string |
26 | 27 | */ |
27 | - public function censusDate() { |
|
28 | + public function censusDate() |
|
29 | + { |
|
28 | 30 | return '07 APR 1861'; |
29 | 31 | } |
30 | 32 | |
@@ -33,7 +35,8 @@ discard block |
||
33 | 35 | * |
34 | 36 | * @return CensusColumnInterface[] |
35 | 37 | */ |
36 | - public function columns() { |
|
38 | + public function columns() |
|
39 | + { |
|
37 | 40 | return array( |
38 | 41 | new CensusColumnFullName($this, 'Name', 'Name and surname'), |
39 | 42 | new CensusColumnRelationToHead($this, 'Relation', 'Relation to head of household'), |
@@ -19,23 +19,23 @@ |
||
19 | 19 | * Marital status. |
20 | 20 | */ |
21 | 21 | class CensusColumnConditionUs extends CensusColumnConditionEnglish { |
22 | - /* Text to display for married individuals */ |
|
23 | - protected $husband = 'M'; |
|
24 | - protected $wife = 'M'; |
|
22 | + /* Text to display for married individuals */ |
|
23 | + protected $husband = 'M'; |
|
24 | + protected $wife = 'M'; |
|
25 | 25 | |
26 | - /* Text to display for unmarried individuals */ |
|
27 | - protected $bachelor = 'S'; |
|
28 | - protected $spinster = 'S'; |
|
26 | + /* Text to display for unmarried individuals */ |
|
27 | + protected $bachelor = 'S'; |
|
28 | + protected $spinster = 'S'; |
|
29 | 29 | |
30 | - /* Text to display for children */ |
|
31 | - protected $boy = 'S'; |
|
32 | - protected $girl = 'S'; |
|
30 | + /* Text to display for children */ |
|
31 | + protected $boy = 'S'; |
|
32 | + protected $girl = 'S'; |
|
33 | 33 | |
34 | - /* Text to display for divorced individuals */ |
|
35 | - protected $divorce = 'D'; |
|
36 | - protected $divorcee = 'D'; |
|
34 | + /* Text to display for divorced individuals */ |
|
35 | + protected $divorce = 'D'; |
|
36 | + protected $divorcee = 'D'; |
|
37 | 37 | |
38 | - /* Text to display for widowed individuals (not yet implemented) */ |
|
39 | - protected $widower = 'W'; |
|
40 | - protected $widow = 'W'; |
|
38 | + /* Text to display for widowed individuals (not yet implemented) */ |
|
39 | + protected $widower = 'W'; |
|
40 | + protected $widow = 'W'; |
|
41 | 41 | } |
@@ -18,7 +18,8 @@ |
||
18 | 18 | /** |
19 | 19 | * Marital status. |
20 | 20 | */ |
21 | -class CensusColumnConditionUs extends CensusColumnConditionEnglish { |
|
21 | +class CensusColumnConditionUs extends CensusColumnConditionEnglish |
|
22 | +{ |
|
22 | 23 | /* Text to display for married individuals */ |
23 | 24 | protected $husband = 'M'; |
24 | 25 | protected $wife = 'M'; |
@@ -19,44 +19,44 @@ |
||
19 | 19 | * Definitions for a census |
20 | 20 | */ |
21 | 21 | class CensusOfDenmark extends Census implements CensusPlaceInterface { |
22 | - /** |
|
23 | - * All available censuses for this census place. |
|
24 | - * |
|
25 | - * @return CensusInterface[] |
|
26 | - */ |
|
27 | - public function allCensusDates() { |
|
28 | - return array( |
|
29 | - new CensusOfDenmark1787(), |
|
30 | - new CensusOfDenmark1801(), |
|
31 | - new CensusOfDenmark1803(), |
|
32 | - new CensusOfDenmark1834(), |
|
33 | - new CensusOfDenmark1835(), |
|
34 | - new CensusOfDenmark1840(), |
|
35 | - new CensusOfDenmark1845(), |
|
36 | - new CensusOfDenmark1850(), |
|
37 | - new CensusOfDenmark1855(), |
|
38 | - new CensusOfDenmark1860(), |
|
39 | - new CensusOfDenmark1870(), |
|
40 | - new CensusOfDenmark1880(), |
|
41 | - new CensusOfDenmark1885(), |
|
42 | - new CensusOfDenmark1890(), |
|
43 | - new CensusOfDenmark1901(), |
|
44 | - new CensusOfDenmark1906(), |
|
45 | - new CensusOfDenmark1911(), |
|
46 | - new CensusOfDenmark1916(), |
|
47 | - new CensusOfDenmark1921(), |
|
48 | - new CensusOfDenmark1925(), |
|
49 | - new CensusOfDenmark1930(), |
|
50 | - new CensusOfDenmark1940(), |
|
51 | - ); |
|
52 | - } |
|
22 | + /** |
|
23 | + * All available censuses for this census place. |
|
24 | + * |
|
25 | + * @return CensusInterface[] |
|
26 | + */ |
|
27 | + public function allCensusDates() { |
|
28 | + return array( |
|
29 | + new CensusOfDenmark1787(), |
|
30 | + new CensusOfDenmark1801(), |
|
31 | + new CensusOfDenmark1803(), |
|
32 | + new CensusOfDenmark1834(), |
|
33 | + new CensusOfDenmark1835(), |
|
34 | + new CensusOfDenmark1840(), |
|
35 | + new CensusOfDenmark1845(), |
|
36 | + new CensusOfDenmark1850(), |
|
37 | + new CensusOfDenmark1855(), |
|
38 | + new CensusOfDenmark1860(), |
|
39 | + new CensusOfDenmark1870(), |
|
40 | + new CensusOfDenmark1880(), |
|
41 | + new CensusOfDenmark1885(), |
|
42 | + new CensusOfDenmark1890(), |
|
43 | + new CensusOfDenmark1901(), |
|
44 | + new CensusOfDenmark1906(), |
|
45 | + new CensusOfDenmark1911(), |
|
46 | + new CensusOfDenmark1916(), |
|
47 | + new CensusOfDenmark1921(), |
|
48 | + new CensusOfDenmark1925(), |
|
49 | + new CensusOfDenmark1930(), |
|
50 | + new CensusOfDenmark1940(), |
|
51 | + ); |
|
52 | + } |
|
53 | 53 | |
54 | - /** |
|
55 | - * Where did this census occur, in GEDCOM format. |
|
56 | - * |
|
57 | - * @return string |
|
58 | - */ |
|
59 | - public function censusPlace() { |
|
60 | - return 'Danmark'; |
|
61 | - } |
|
54 | + /** |
|
55 | + * Where did this census occur, in GEDCOM format. |
|
56 | + * |
|
57 | + * @return string |
|
58 | + */ |
|
59 | + public function censusPlace() { |
|
60 | + return 'Danmark'; |
|
61 | + } |
|
62 | 62 | } |
@@ -18,13 +18,15 @@ discard block |
||
18 | 18 | /** |
19 | 19 | * Definitions for a census |
20 | 20 | */ |
21 | -class CensusOfDenmark extends Census implements CensusPlaceInterface { |
|
21 | +class CensusOfDenmark extends Census implements CensusPlaceInterface |
|
22 | +{ |
|
22 | 23 | /** |
23 | 24 | * All available censuses for this census place. |
24 | 25 | * |
25 | 26 | * @return CensusInterface[] |
26 | 27 | */ |
27 | - public function allCensusDates() { |
|
28 | + public function allCensusDates() |
|
29 | + { |
|
28 | 30 | return array( |
29 | 31 | new CensusOfDenmark1787(), |
30 | 32 | new CensusOfDenmark1801(), |
@@ -56,7 +58,8 @@ discard block |
||
56 | 58 | * |
57 | 59 | * @return string |
58 | 60 | */ |
59 | - public function censusPlace() { |
|
61 | + public function censusPlace() |
|
62 | + { |
|
60 | 63 | return 'Danmark'; |
61 | 64 | } |
62 | 65 | } |
@@ -19,30 +19,30 @@ |
||
19 | 19 | * Definitions for a census |
20 | 20 | */ |
21 | 21 | class CensusOfWales1851 extends CensusOfWales implements CensusInterface { |
22 | - /** |
|
23 | - * When did this census occur. |
|
24 | - * |
|
25 | - * @return string |
|
26 | - */ |
|
27 | - public function censusDate() { |
|
28 | - return '30 MAR 1851'; |
|
29 | - } |
|
22 | + /** |
|
23 | + * When did this census occur. |
|
24 | + * |
|
25 | + * @return string |
|
26 | + */ |
|
27 | + public function censusDate() { |
|
28 | + return '30 MAR 1851'; |
|
29 | + } |
|
30 | 30 | |
31 | - /** |
|
32 | - * The columns of the census. |
|
33 | - * |
|
34 | - * @return CensusColumnInterface[] |
|
35 | - */ |
|
36 | - public function columns() { |
|
37 | - return array( |
|
38 | - new CensusColumnFullName($this, 'Name', 'Name and surname'), |
|
39 | - new CensusColumnRelationToHead($this, 'Relation', 'Relation to head of household'), |
|
40 | - new CensusColumnConditionEnglish($this, 'Condition', 'Condition'), |
|
41 | - new CensusColumnAgeMale($this, 'AgeM', 'Age (males)'), |
|
42 | - new CensusColumnAgeFemale($this, 'AgeF', 'Age (females)'), |
|
43 | - new CensusColumnOccupation($this, 'Occupation', 'Rank, profession or occupation'), |
|
44 | - new CensusColumnBirthPlace($this, 'Birthplace', 'Where born'), |
|
45 | - new CensusColumnNull($this, 'Infirm', 'Whether blind or deaf-and-dumb'), |
|
46 | - ); |
|
47 | - } |
|
31 | + /** |
|
32 | + * The columns of the census. |
|
33 | + * |
|
34 | + * @return CensusColumnInterface[] |
|
35 | + */ |
|
36 | + public function columns() { |
|
37 | + return array( |
|
38 | + new CensusColumnFullName($this, 'Name', 'Name and surname'), |
|
39 | + new CensusColumnRelationToHead($this, 'Relation', 'Relation to head of household'), |
|
40 | + new CensusColumnConditionEnglish($this, 'Condition', 'Condition'), |
|
41 | + new CensusColumnAgeMale($this, 'AgeM', 'Age (males)'), |
|
42 | + new CensusColumnAgeFemale($this, 'AgeF', 'Age (females)'), |
|
43 | + new CensusColumnOccupation($this, 'Occupation', 'Rank, profession or occupation'), |
|
44 | + new CensusColumnBirthPlace($this, 'Birthplace', 'Where born'), |
|
45 | + new CensusColumnNull($this, 'Infirm', 'Whether blind or deaf-and-dumb'), |
|
46 | + ); |
|
47 | + } |
|
48 | 48 | } |
@@ -18,13 +18,15 @@ discard block |
||
18 | 18 | /** |
19 | 19 | * Definitions for a census |
20 | 20 | */ |
21 | -class CensusOfWales1851 extends CensusOfWales implements CensusInterface { |
|
21 | +class CensusOfWales1851 extends CensusOfWales implements CensusInterface |
|
22 | +{ |
|
22 | 23 | /** |
23 | 24 | * When did this census occur. |
24 | 25 | * |
25 | 26 | * @return string |
26 | 27 | */ |
27 | - public function censusDate() { |
|
28 | + public function censusDate() |
|
29 | + { |
|
28 | 30 | return '30 MAR 1851'; |
29 | 31 | } |
30 | 32 | |
@@ -33,7 +35,8 @@ discard block |
||
33 | 35 | * |
34 | 36 | * @return CensusColumnInterface[] |
35 | 37 | */ |
36 | - public function columns() { |
|
38 | + public function columns() |
|
39 | + { |
|
37 | 40 | return array( |
38 | 41 | new CensusColumnFullName($this, 'Name', 'Name and surname'), |
39 | 42 | new CensusColumnRelationToHead($this, 'Relation', 'Relation to head of household'), |
@@ -22,21 +22,21 @@ |
||
22 | 22 | * Relationshiop to head of household. |
23 | 23 | */ |
24 | 24 | class CensusColumnRelationToHead extends AbstractCensusColumn implements CensusColumnInterface { |
25 | - /** |
|
26 | - * Generate the likely value of this census column, based on available information. |
|
27 | - * |
|
28 | - * @param Individual $individual |
|
29 | - * @param Individual|null $head |
|
30 | - * |
|
31 | - * @return string |
|
32 | - */ |
|
33 | - public function generate(Individual $individual, Individual $head = null) { |
|
34 | - if ($head === null) { |
|
35 | - return ''; |
|
36 | - } elseif ($individual == $head) { |
|
37 | - return 'head'; |
|
38 | - } else { |
|
39 | - return Functions::getCloseRelationshipName($head, $individual); |
|
40 | - } |
|
41 | - } |
|
25 | + /** |
|
26 | + * Generate the likely value of this census column, based on available information. |
|
27 | + * |
|
28 | + * @param Individual $individual |
|
29 | + * @param Individual|null $head |
|
30 | + * |
|
31 | + * @return string |
|
32 | + */ |
|
33 | + public function generate(Individual $individual, Individual $head = null) { |
|
34 | + if ($head === null) { |
|
35 | + return ''; |
|
36 | + } elseif ($individual == $head) { |
|
37 | + return 'head'; |
|
38 | + } else { |
|
39 | + return Functions::getCloseRelationshipName($head, $individual); |
|
40 | + } |
|
41 | + } |
|
42 | 42 | } |
@@ -21,7 +21,8 @@ discard block |
||
21 | 21 | /** |
22 | 22 | * Relationshiop to head of household. |
23 | 23 | */ |
24 | -class CensusColumnRelationToHead extends AbstractCensusColumn implements CensusColumnInterface { |
|
24 | +class CensusColumnRelationToHead extends AbstractCensusColumn implements CensusColumnInterface |
|
25 | +{ |
|
25 | 26 | /** |
26 | 27 | * Generate the likely value of this census column, based on available information. |
27 | 28 | * |
@@ -30,7 +31,8 @@ discard block |
||
30 | 31 | * |
31 | 32 | * @return string |
32 | 33 | */ |
33 | - public function generate(Individual $individual, Individual $head = null) { |
|
34 | + public function generate(Individual $individual, Individual $head = null) |
|
35 | + { |
|
34 | 36 | if ($head === null) { |
35 | 37 | return ''; |
36 | 38 | } elseif ($individual == $head) { |
@@ -19,30 +19,30 @@ |
||
19 | 19 | * Definitions for a census |
20 | 20 | */ |
21 | 21 | class CensusOfEngland1851 extends CensusOfEngland implements CensusInterface { |
22 | - /** |
|
23 | - * When did this census occur. |
|
24 | - * |
|
25 | - * @return string |
|
26 | - */ |
|
27 | - public function censusDate() { |
|
28 | - return '30 MAR 1851'; |
|
29 | - } |
|
22 | + /** |
|
23 | + * When did this census occur. |
|
24 | + * |
|
25 | + * @return string |
|
26 | + */ |
|
27 | + public function censusDate() { |
|
28 | + return '30 MAR 1851'; |
|
29 | + } |
|
30 | 30 | |
31 | - /** |
|
32 | - * The columns of the census. |
|
33 | - * |
|
34 | - * @return CensusColumnInterface[] |
|
35 | - */ |
|
36 | - public function columns() { |
|
37 | - return array( |
|
38 | - new CensusColumnFullName($this, 'Name', 'Name and surname'), |
|
39 | - new CensusColumnRelationToHead($this, 'Relation', 'Relation to head of household'), |
|
40 | - new CensusColumnConditionEnglish($this, 'Condition', 'Condition'), |
|
41 | - new CensusColumnAgeMale($this, 'AgeM', 'Age (males)'), |
|
42 | - new CensusColumnAgeFemale($this, 'AgeF', 'Age (females)'), |
|
43 | - new CensusColumnOccupation($this, 'Occupation', 'Rank, profession or occupation'), |
|
44 | - new CensusColumnBirthPlace($this, 'Birthplace', 'Where born'), |
|
45 | - new CensusColumnNull($this, 'Infirm', 'Whether blind or deaf-and-dumb'), |
|
46 | - ); |
|
47 | - } |
|
31 | + /** |
|
32 | + * The columns of the census. |
|
33 | + * |
|
34 | + * @return CensusColumnInterface[] |
|
35 | + */ |
|
36 | + public function columns() { |
|
37 | + return array( |
|
38 | + new CensusColumnFullName($this, 'Name', 'Name and surname'), |
|
39 | + new CensusColumnRelationToHead($this, 'Relation', 'Relation to head of household'), |
|
40 | + new CensusColumnConditionEnglish($this, 'Condition', 'Condition'), |
|
41 | + new CensusColumnAgeMale($this, 'AgeM', 'Age (males)'), |
|
42 | + new CensusColumnAgeFemale($this, 'AgeF', 'Age (females)'), |
|
43 | + new CensusColumnOccupation($this, 'Occupation', 'Rank, profession or occupation'), |
|
44 | + new CensusColumnBirthPlace($this, 'Birthplace', 'Where born'), |
|
45 | + new CensusColumnNull($this, 'Infirm', 'Whether blind or deaf-and-dumb'), |
|
46 | + ); |
|
47 | + } |
|
48 | 48 | } |
@@ -18,13 +18,15 @@ discard block |
||
18 | 18 | /** |
19 | 19 | * Definitions for a census |
20 | 20 | */ |
21 | -class CensusOfEngland1851 extends CensusOfEngland implements CensusInterface { |
|
21 | +class CensusOfEngland1851 extends CensusOfEngland implements CensusInterface |
|
22 | +{ |
|
22 | 23 | /** |
23 | 24 | * When did this census occur. |
24 | 25 | * |
25 | 26 | * @return string |
26 | 27 | */ |
27 | - public function censusDate() { |
|
28 | + public function censusDate() |
|
29 | + { |
|
28 | 30 | return '30 MAR 1851'; |
29 | 31 | } |
30 | 32 | |
@@ -33,7 +35,8 @@ discard block |
||
33 | 35 | * |
34 | 36 | * @return CensusColumnInterface[] |
35 | 37 | */ |
36 | - public function columns() { |
|
38 | + public function columns() |
|
39 | + { |
|
37 | 40 | return array( |
38 | 41 | new CensusColumnFullName($this, 'Name', 'Name and surname'), |
39 | 42 | new CensusColumnRelationToHead($this, 'Relation', 'Relation to head of household'), |