22
33namespace NStack ;
44
5+ use NStack \Clients \CollectionsClient ;
56use NStack \Clients \ContinentsClient ;
67use NStack \Clients \CountriesClient ;
8+ use NStack \Clients \FilesClient ;
9+ use NStack \Clients \IpAddressesClient ;
10+ use NStack \Clients \LanguagesClient ;
11+ use NStack \Clients \LocalizeClient ;
12+ use NStack \Clients \ProposalsClient ;
13+ use NStack \Clients \PushLogClient ;
14+ use NStack \Clients \TimezoneClient ;
15+ use NStack \Clients \ValidatorsClient ;
16+ use NStack \Clients \VersionControlClient ;
717use NStack \Exceptions \MissingMasterKeyException ;
818
919/**
@@ -17,12 +27,42 @@ class NStack
1727 /** @var \NStack\Config */
1828 protected $ config ;
1929
20- /** @var \NStack\Clients\ContinentsClient */
30+ /** @var CollectionsClient */
31+ protected $ collectionClient ;
32+
33+ /** @var ContinentsClient */
2134 protected $ continentsClient ;
2235
23- /** @var \NStack\Clients\ CountriesClient */
36+ /** @var CountriesClient */
2437 protected $ countriesClient ;
2538
39+ /** @var FilesClient */
40+ protected $ filesClient ;
41+
42+ /** @var IpAddressesClient */
43+ protected $ ipAddressClient ;
44+
45+ /** @var LanguagesClient */
46+ protected $ languageClient ;
47+
48+ /** @var LocalizeClient */
49+ protected $ localizeClient ;
50+
51+ /** @var VersionControlClient */
52+ protected $ versionControlClient ;
53+
54+ /** @var ProposalsClient */
55+ protected $ proposalClient ;
56+
57+ /** @var TimezoneClient */
58+ protected $ timezoneClient ;
59+
60+ /** @var PushLogClient */
61+ protected $ pushLogClient ;
62+
63+ /** @var ValidatorsClient */
64+ protected $ validatorClient ;
65+
2666 /**
2767 * NStack constructor.
2868 *
@@ -34,6 +74,16 @@ public function __construct(Config $config)
3474 $ this ->config = $ config ;
3575 $ this ->continentsClient = new ContinentsClient ($ config );
3676 $ this ->countriesClient = new CountriesClient ($ config );
77+ $ this ->collectionClient = new CollectionsClient ($ config );
78+ $ this ->filesClient = new FilesClient ($ config );
79+ $ this ->ipAddressClient = new IpAddressesClient ($ config );
80+ $ this ->languageClient = new LanguagesClient ($ config );
81+ $ this ->localizeClient = new LocalizeClient ($ config );
82+ $ this ->versionControlClient = new VersionControlClient ($ config );
83+ $ this ->proposalClient = new ProposalsClient ($ config );
84+ $ this ->timezoneClient = new TimezoneClient ($ config );
85+ $ this ->pushLogClient = new PushLogClient ($ config );
86+ $ this ->validatorClient = new ValidatorsClient ($ config );
3787 }
3888
3989 /**
@@ -48,7 +98,7 @@ public function getConfig(): Config
4898 /**
4999 * getContinentsClient
50100 *
51- * @return \NStack\Clients\ ContinentsClient
101+ * @return ContinentsClient
52102 * @author Casper Rasmussen <cr@nodes.dk>
53103 */
54104 public function getContinentsClient (): ContinentsClient
@@ -59,14 +109,104 @@ public function getContinentsClient(): ContinentsClient
59109 /**
60110 * getCountriesClient
61111 *
62- * @return \NStack\Clients\ CountriesClient
112+ * @return CountriesClient
63113 * @author Casper Rasmussen <cr@nodes.dk>
64114 */
65115 public function getCountriesClient (): CountriesClient
66116 {
67117 return $ this ->countriesClient ;
68118 }
69119
120+ /**
121+ * @return CollectionsClient
122+ * @author Casper Rasmussen <cr@nodes.dk>
123+ */
124+ public function getCollectionClient (): CollectionsClient
125+ {
126+ return $ this ->collectionClient ;
127+ }
128+
129+ /**
130+ * @return FilesClient
131+ * @author Casper Rasmussen <cr@nodes.dk>
132+ */
133+ public function getFilesClient (): FilesClient
134+ {
135+ return $ this ->filesClient ;
136+ }
137+
138+ /**
139+ * @return IpAddressesClient
140+ * @author Casper Rasmussen <cr@nodes.dk>
141+ */
142+ public function getIpAddressClient (): IpAddressesClient
143+ {
144+ return $ this ->ipAddressClient ;
145+ }
146+
147+ /**
148+ * @return LanguagesClient
149+ * @author Casper Rasmussen <cr@nodes.dk>
150+ */
151+ public function getLanguageClient (): LanguagesClient
152+ {
153+ return $ this ->languageClient ;
154+ }
155+
156+ /**
157+ * @return LocalizeClient
158+ * @author Casper Rasmussen <cr@nodes.dk>
159+ */
160+ public function getLocalizeClient (): LocalizeClient
161+ {
162+ return $ this ->localizeClient ;
163+ }
164+
165+ /**
166+ * @return VersionControlClient
167+ * @author Casper Rasmussen <cr@nodes.dk>
168+ */
169+ public function getVersionControlClient (): VersionControlClient
170+ {
171+ return $ this ->versionControlClient ;
172+ }
173+
174+ /**
175+ * @return ProposalsClient
176+ * @author Casper Rasmussen <cr@nodes.dk>
177+ */
178+ public function getProposalClient (): ProposalsClient
179+ {
180+ return $ this ->proposalClient ;
181+ }
182+
183+ /**
184+ * @return TimezoneClient
185+ * @author Casper Rasmussen <cr@nodes.dk>
186+ */
187+ public function getTimezoneClient (): TimezoneClient
188+ {
189+ return $ this ->timezoneClient ;
190+ }
191+
192+ /**
193+ * @return PushLogClient
194+ * @author Casper Rasmussen <cr@nodes.dk>
195+ */
196+ public function getPushLogClient (): PushLogClient
197+ {
198+ return $ this ->pushLogClient ;
199+ }
200+
201+ /**
202+ * @return ValidatorsClient
203+ * @author Casper Rasmussen <cr@nodes.dk>
204+ */
205+ public function getValidatorClient (): ValidatorsClient
206+ {
207+ return $ this ->validatorClient ;
208+ }
209+
70210 /**
71211 * getDeeplink
72212 *
0 commit comments