xref: /webtrees/app/Module/NewZealandPrimeMinisters.php (revision 9d74ed0ab3ae61aa8ae07578e026f14020844ce9)
1<?php
2
3/**
4 * webtrees: online genealogy
5 * Copyright (C) 2023 webtrees development team
6 * This program is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <https://www.gnu.org/licenses/>.
16 */
17
18declare(strict_types=1);
19
20namespace Fisharebest\Webtrees\Module;
21
22use Fisharebest\Webtrees\I18N;
23use Illuminate\Support\Collection;
24
25/**
26 * Class NewZealandPrimeMinisters
27 */
28class NewZealandPrimeMinisters extends AbstractModule implements ModuleHistoricEventsInterface
29{
30    use ModuleHistoricEventsTrait;
31
32    /**
33     * How should this module be identified in the control panel, etc.?
34     *
35     * @return string
36     */
37    public function title(): string
38    {
39        return 'New Zealand Premiers / Prime Ministers';
40    }
41
42    /**
43     * Should this module be enabled when it is first installed?
44     *
45     * @return bool
46     */
47    public function isEnabledByDefault(): bool
48    {
49        return false;
50    }
51
52    /**
53     * @return Collection<int,string>
54     */
55    public function historicEventsAll(string $language_tag): Collection
56    {
57        switch ($language_tag) {
58            case 'en-AU':
59            case 'en-GB':
60            case 'en-US':
61                return new Collection([
62                    "1 EVEN Henry Sewell\n2 TYPE Premier of New Zealand\n2 DATE FROM 07 MAY 1856 TO 20 MAY 1856",
63                    "1 EVEN William Fox\n2 TYPE Premier of New Zealand\n2 DATE FROM 20 MAY 1856 TO 02 JUN 1856",
64                    "1 EVEN Edward Stafford\n2 TYPE Premier of New Zealand\n2 DATE FROM 02 JUN 1856 TO 12 JUL 1861",
65                    "1 EVEN William Fox\n2 TYPE Premier of New Zealand\n2 DATE FROM 12 JUL 1861 TO 06 AUG 1862",
66                    "1 EVEN Alfred Domett\n2 TYPE Premier of New Zealand\n2 DATE FROM 06 AUG 1862 TO 30 OCT 1863",
67                    "1 EVEN Frederick Whitaker\n2 TYPE Premier of New Zealand\n2 DATE FROM 30 OCT 1863 TO 24 NOV 1864",
68                    "1 EVEN Frederick Weld\n2 TYPE Premier of New Zealand\n2 DATE FROM 24 NOV 1864 TO 16 OCT 1865",
69                    "1 EVEN Edward Stafford\n2 TYPE Premier of New Zealand\n2 DATE FROM 16 OCT 1865 TO 28 JUN 1869",
70                    "1 EVEN William Fox \n2 TYPE Premier of New Zealand\n2 DATE FROM 28 JUN 1869 TO 10 SEP 1872",
71                    "1 EVEN Edward Stafford\n2 TYPE Premier of New Zealand\n2 DATE FROM 10 SEP 1872 TO 11 OCT 1872",
72                    "1 EVEN George Waterhouse\n2 TYPE Premier of New Zealand\n2 DATE FROM 11 OCT 1872 TO 03 MAR 1873",
73                    "1 EVEN William Fox\n2 TYPE Premier of New Zealand\n2 DATE FROM 03 MAR 1873 TO 08 APR 1873",
74                    "1 EVEN Julius Vogel\n2 TYPE Premier of New Zealand\n2 DATE FROM 08 APR 1873 TO 06 JUL 1875",
75                    "1 EVEN Daniel Pollen\n2 TYPE Premier of New Zealand\n2 DATE FROM 06 JUL 1875 TO 15 FEB 1876",
76                    "1 EVEN Julius Vogel\n2 TYPE Premier of New Zealand\n2 DATE FROM 15 FEB 1876 TO 01 SEP 1876",
77                    "1 EVEN Harry Atkinson\n2 TYPE Premier of New Zealand\n2 DATE FROM 01 SEP 1876 TO 13 OCT 1877",
78                    "1 EVEN George Grey\n2 TYPE Premier of New Zealand\n2 DATE FROM 13 OCT 1877 TO 08 OCT 1879",
79                    "1 EVEN John Hall\n2 TYPE Premier of New Zealand\n2 DATE FROM 08 OCT 1879 TO 21 APR 1882",
80                    "1 EVEN Frederick Whitaker\n2 TYPE Premier of New Zealand\n2 DATE FROM 21 APR 1882 TO 25 SEP 1883",
81                    "1 EVEN Harry Atkinson\n2 TYPE Premier of New Zealand\n2 DATE FROM 25 SEP 1883 TO 16 AUG 1883",
82                    "1 EVEN Robert Stout\n2 TYPE Premier of New Zealand\n2 DATE FROM 16 AUG 1884 TO 28 AUG 1884",
83                    "1 EVEN Harry Atkinson\n2 TYPE Premier of New Zealand\n2 DATE FROM 28 AUG 1884 TO 03 SEP 1884",
84                    "1 EVEN Robert Stout\n2 TYPE Premier of New Zealand\n2 DATE FROM 03 SEP 1884 TO 08 OCT 1887",
85                    "1 EVEN Harry Atkinson\n2 TYPE Premier of New Zealand\n2 DATE FROM 08 OCT 1887 TO 21 JAN 1891",
86                    "1 EVEN John Ballance\n2 TYPE Premier of New Zealand\n2 DATE FROM 24 JAN 1891 TO 27 APR 1893",
87                    "1 EVEN Richard Seddon\n2 TYPE Premier of New Zealand\n2 DATE FROM 01 MAY 1893 TO 10 JUN 1906",
88                    "1 EVEN William Hall-Jones\n2 TYPE Prime Minister of New Zealand\n2 DATE FROM 21 JUN 1906 TO 06 AUG 1906",
89                    "1 EVEN Joseph Ward\n2 TYPE Prime Minister of New Zealand\n2 DATE FROM 06 AUG 1906 TO 12 MAR 1912",
90                    "1 EVEN Thomas Mackenzie\n2 TYPE Prime Minister of New Zealand\n2 DATE FROM 28 MAR 1912 TO 10 JUL 1912",
91                    "1 EVEN William Massey\n2 TYPE Prime Minister of New Zealand\n2 DATE FROM 10 JUL 1912 TO 10 MAY 1925",
92                    "1 EVEN Francis Henry Dillon Bell\n2 TYPE Prime Minister of New Zealand\n2 DATE FROM 14 MAY 1925 TO 30 MAY 1925",
93                    "1 EVEN Gordon Coates\n2 TYPE Prime Minister of New Zealand\n2 DATE FROM 30 MAY 1925 TO 10 DEC 1928",
94                    "1 EVEN George Forbes\n2 TYPE Prime Minister of New Zealand\n2 DATE FROM 10 DEC 1928 TO 28 MAY 1930",
95                    "1 EVEN Joseph Ward\n2 TYPE Prime Minister of New Zealand\n2 DATE FROM 28 MAY 1930 TO 06 DEC 1935",
96                    "1 EVEN Michael Joseph Savage\n2 TYPE Prime Minister of New Zealand\n2 DATE FROM 06 DEC 1935 TO 27 MAR 1940",
97                    "1 EVEN Peter Fraser\n2 TYPE Prime Minister of New Zealand\n2 DATE FROM 27 MAR 1940 TO 13 DEC 1949",
98                    "1 EVEN Sidney Holland\n2 TYPE Prime Minister of New Zealand\n2 DATE FROM 13 DEC 1949 TO 20 SEP 1957",
99                    "1 EVEN Keith Holyoake\n2 TYPE Prime Minister of New Zealand\n2 DATE FROM 20 SEP 1957 TO 12 DEC 1957",
100                    "1 EVEN Walter Nash\n2 TYPE Prime Minister of New Zealand\n2 DATE FROM 12 DEC 1957 TO 12 DEC 1960",
101                    "1 EVEN Keith Holyoake\n2 TYPE Prime Minister of New Zealand\n2 DATE FROM 12 DEC 1960 TO 07 FEB 1972",
102                    "1 EVEN Jack Marshall\n2 TYPE Prime Minister of New Zealand\n2 DATE FROM 07 FEB 1972 TO 08 DEC 1972",
103                    "1 EVEN Norman Kirk\n2 TYPE Prime Minister of New Zealand\n2 DATE FROM 08 DEC 1972 TO 31 AUG 1974",
104                    "1 EVEN Bill Rowling\n2 TYPE Prime Minister of New Zealand\n2 DATE FROM 06 SEP 1974 TO 12 DEC 1975",
105                    "1 EVEN Rob Muldoon\n2 TYPE Prime Minister of New Zealand\n2 DATE FROM 12 DEC 1975 TO 26 JUL 1984",
106                    "1 EVEN David Lange\n2 TYPE Prime Minister of New Zealand\n2 DATE FROM 26 JUL 1984 TO 08 AUG 1989",
107                    "1 EVEN Geoffrey Palmer\n2 TYPE Prime Minister of New Zealand\n2 DATE FROM 08 AUG 1989 TO 04 SEP 1990",
108                    "1 EVEN Mike Moore\n2 TYPE Prime Minister of New Zealand\n2 DATE FROM 04 SEP 1990 TO 02 NOV 1990",
109                    "1 EVEN Jim Bolger\n2 TYPE Prime Minister of New Zealand\n2 DATE FROM 02 NOV 1990 TO 08 DEC 1997",
110                    "1 EVEN Jenny Shipley\n2 TYPE Prime Minister of New Zealand\n2 DATE FROM 08 DEC 1997 TO 05 DEC 1999",
111                    "1 EVEN Helen Clark\n2 TYPE Prime Minister of New Zealand\n2 DATE FROM 05 DEC 1999 TO 19 NOV 2008",
112                    "1 EVEN John Key\n2 TYPE Prime Minister of New Zealand\n2 DATE FROM 19 NOV 2008 TO 12 DEC 2016",
113                    "1 EVEN Bill English\n2 TYPE Prime Minister of New Zealand\n2 DATE FROM 12 DEC 2016 TO 26 OCT 2017",
114                    "1 EVEN Jacinda Ardern\n2 TYPE Prime Minister of New Zealand\n2 DATE FROM 26 OCT 2017 TO 25 JAN 2023",
115                    "1 EVEN Chris Hipkins\n2 TYPE Prime Minister of New Zealand\n2 DATE FROM 25 JAN 2023 TO 14 OCT 2023",
116                    "1 EVEN Chris Luxon\n2 TYPE Prime Minister of New Zealand\n2 DATE FROM 14 OCT 2023",
117                ]);
118
119            default:
120                return new Collection();
121        }
122    }
123}
124