-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathRuntime.php
411 lines (403 loc) Β· 11.1 KB
/
Runtime.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
<?php
namespace Appwrite\Enums;
use JsonSerializable;
class Runtime implements JsonSerializable
{
private static Runtime $NODE145;
private static Runtime $NODE160;
private static Runtime $NODE180;
private static Runtime $NODE190;
private static Runtime $NODE200;
private static Runtime $NODE210;
private static Runtime $PHP80;
private static Runtime $PHP81;
private static Runtime $PHP82;
private static Runtime $PHP83;
private static Runtime $RUBY30;
private static Runtime $RUBY31;
private static Runtime $RUBY32;
private static Runtime $RUBY33;
private static Runtime $PYTHON38;
private static Runtime $PYTHON39;
private static Runtime $PYTHON310;
private static Runtime $PYTHON311;
private static Runtime $PYTHON312;
private static Runtime $PYTHONML311;
private static Runtime $DENO121;
private static Runtime $DENO124;
private static Runtime $DENO135;
private static Runtime $DENO140;
private static Runtime $DART215;
private static Runtime $DART216;
private static Runtime $DART217;
private static Runtime $DART218;
private static Runtime $DART30;
private static Runtime $DART31;
private static Runtime $DART33;
private static Runtime $DOTNET31;
private static Runtime $DOTNET60;
private static Runtime $DOTNET70;
private static Runtime $JAVA80;
private static Runtime $JAVA110;
private static Runtime $JAVA170;
private static Runtime $JAVA180;
private static Runtime $JAVA210;
private static Runtime $SWIFT55;
private static Runtime $SWIFT58;
private static Runtime $SWIFT59;
private static Runtime $KOTLIN16;
private static Runtime $KOTLIN18;
private static Runtime $KOTLIN19;
private static Runtime $CPP17;
private static Runtime $CPP20;
private static Runtime $BUN10;
private string $value;
private function __construct(string $value)
{
$this->value = $value;
}
public function __toString(): string
{
return $this->value;
}
public function jsonSerialize(): string
{
return $this->value;
}
public static function NODE145(): Runtime
{
if (!isset(self::$NODE145)) {
self::$NODE145 = new Runtime('node-14.5');
}
return self::$NODE145;
}
public static function NODE160(): Runtime
{
if (!isset(self::$NODE160)) {
self::$NODE160 = new Runtime('node-16.0');
}
return self::$NODE160;
}
public static function NODE180(): Runtime
{
if (!isset(self::$NODE180)) {
self::$NODE180 = new Runtime('node-18.0');
}
return self::$NODE180;
}
public static function NODE190(): Runtime
{
if (!isset(self::$NODE190)) {
self::$NODE190 = new Runtime('node-19.0');
}
return self::$NODE190;
}
public static function NODE200(): Runtime
{
if (!isset(self::$NODE200)) {
self::$NODE200 = new Runtime('node-20.0');
}
return self::$NODE200;
}
public static function NODE210(): Runtime
{
if (!isset(self::$NODE210)) {
self::$NODE210 = new Runtime('node-21.0');
}
return self::$NODE210;
}
public static function PHP80(): Runtime
{
if (!isset(self::$PHP80)) {
self::$PHP80 = new Runtime('php-8.0');
}
return self::$PHP80;
}
public static function PHP81(): Runtime
{
if (!isset(self::$PHP81)) {
self::$PHP81 = new Runtime('php-8.1');
}
return self::$PHP81;
}
public static function PHP82(): Runtime
{
if (!isset(self::$PHP82)) {
self::$PHP82 = new Runtime('php-8.2');
}
return self::$PHP82;
}
public static function PHP83(): Runtime
{
if (!isset(self::$PHP83)) {
self::$PHP83 = new Runtime('php-8.3');
}
return self::$PHP83;
}
public static function RUBY30(): Runtime
{
if (!isset(self::$RUBY30)) {
self::$RUBY30 = new Runtime('ruby-3.0');
}
return self::$RUBY30;
}
public static function RUBY31(): Runtime
{
if (!isset(self::$RUBY31)) {
self::$RUBY31 = new Runtime('ruby-3.1');
}
return self::$RUBY31;
}
public static function RUBY32(): Runtime
{
if (!isset(self::$RUBY32)) {
self::$RUBY32 = new Runtime('ruby-3.2');
}
return self::$RUBY32;
}
public static function RUBY33(): Runtime
{
if (!isset(self::$RUBY33)) {
self::$RUBY33 = new Runtime('ruby-3.3');
}
return self::$RUBY33;
}
public static function PYTHON38(): Runtime
{
if (!isset(self::$PYTHON38)) {
self::$PYTHON38 = new Runtime('python-3.8');
}
return self::$PYTHON38;
}
public static function PYTHON39(): Runtime
{
if (!isset(self::$PYTHON39)) {
self::$PYTHON39 = new Runtime('python-3.9');
}
return self::$PYTHON39;
}
public static function PYTHON310(): Runtime
{
if (!isset(self::$PYTHON310)) {
self::$PYTHON310 = new Runtime('python-3.10');
}
return self::$PYTHON310;
}
public static function PYTHON311(): Runtime
{
if (!isset(self::$PYTHON311)) {
self::$PYTHON311 = new Runtime('python-3.11');
}
return self::$PYTHON311;
}
public static function PYTHON312(): Runtime
{
if (!isset(self::$PYTHON312)) {
self::$PYTHON312 = new Runtime('python-3.12');
}
return self::$PYTHON312;
}
public static function PYTHONML311(): Runtime
{
if (!isset(self::$PYTHONML311)) {
self::$PYTHONML311 = new Runtime('python-ml-3.11');
}
return self::$PYTHONML311;
}
public static function DENO121(): Runtime
{
if (!isset(self::$DENO121)) {
self::$DENO121 = new Runtime('deno-1.21');
}
return self::$DENO121;
}
public static function DENO124(): Runtime
{
if (!isset(self::$DENO124)) {
self::$DENO124 = new Runtime('deno-1.24');
}
return self::$DENO124;
}
public static function DENO135(): Runtime
{
if (!isset(self::$DENO135)) {
self::$DENO135 = new Runtime('deno-1.35');
}
return self::$DENO135;
}
public static function DENO140(): Runtime
{
if (!isset(self::$DENO140)) {
self::$DENO140 = new Runtime('deno-1.40');
}
return self::$DENO140;
}
public static function DART215(): Runtime
{
if (!isset(self::$DART215)) {
self::$DART215 = new Runtime('dart-2.15');
}
return self::$DART215;
}
public static function DART216(): Runtime
{
if (!isset(self::$DART216)) {
self::$DART216 = new Runtime('dart-2.16');
}
return self::$DART216;
}
public static function DART217(): Runtime
{
if (!isset(self::$DART217)) {
self::$DART217 = new Runtime('dart-2.17');
}
return self::$DART217;
}
public static function DART218(): Runtime
{
if (!isset(self::$DART218)) {
self::$DART218 = new Runtime('dart-2.18');
}
return self::$DART218;
}
public static function DART30(): Runtime
{
if (!isset(self::$DART30)) {
self::$DART30 = new Runtime('dart-3.0');
}
return self::$DART30;
}
public static function DART31(): Runtime
{
if (!isset(self::$DART31)) {
self::$DART31 = new Runtime('dart-3.1');
}
return self::$DART31;
}
public static function DART33(): Runtime
{
if (!isset(self::$DART33)) {
self::$DART33 = new Runtime('dart-3.3');
}
return self::$DART33;
}
public static function DOTNET31(): Runtime
{
if (!isset(self::$DOTNET31)) {
self::$DOTNET31 = new Runtime('dotnet-3.1');
}
return self::$DOTNET31;
}
public static function DOTNET60(): Runtime
{
if (!isset(self::$DOTNET60)) {
self::$DOTNET60 = new Runtime('dotnet-6.0');
}
return self::$DOTNET60;
}
public static function DOTNET70(): Runtime
{
if (!isset(self::$DOTNET70)) {
self::$DOTNET70 = new Runtime('dotnet-7.0');
}
return self::$DOTNET70;
}
public static function JAVA80(): Runtime
{
if (!isset(self::$JAVA80)) {
self::$JAVA80 = new Runtime('java-8.0');
}
return self::$JAVA80;
}
public static function JAVA110(): Runtime
{
if (!isset(self::$JAVA110)) {
self::$JAVA110 = new Runtime('java-11.0');
}
return self::$JAVA110;
}
public static function JAVA170(): Runtime
{
if (!isset(self::$JAVA170)) {
self::$JAVA170 = new Runtime('java-17.0');
}
return self::$JAVA170;
}
public static function JAVA180(): Runtime
{
if (!isset(self::$JAVA180)) {
self::$JAVA180 = new Runtime('java-18.0');
}
return self::$JAVA180;
}
public static function JAVA210(): Runtime
{
if (!isset(self::$JAVA210)) {
self::$JAVA210 = new Runtime('java-21.0');
}
return self::$JAVA210;
}
public static function SWIFT55(): Runtime
{
if (!isset(self::$SWIFT55)) {
self::$SWIFT55 = new Runtime('swift-5.5');
}
return self::$SWIFT55;
}
public static function SWIFT58(): Runtime
{
if (!isset(self::$SWIFT58)) {
self::$SWIFT58 = new Runtime('swift-5.8');
}
return self::$SWIFT58;
}
public static function SWIFT59(): Runtime
{
if (!isset(self::$SWIFT59)) {
self::$SWIFT59 = new Runtime('swift-5.9');
}
return self::$SWIFT59;
}
public static function KOTLIN16(): Runtime
{
if (!isset(self::$KOTLIN16)) {
self::$KOTLIN16 = new Runtime('kotlin-1.6');
}
return self::$KOTLIN16;
}
public static function KOTLIN18(): Runtime
{
if (!isset(self::$KOTLIN18)) {
self::$KOTLIN18 = new Runtime('kotlin-1.8');
}
return self::$KOTLIN18;
}
public static function KOTLIN19(): Runtime
{
if (!isset(self::$KOTLIN19)) {
self::$KOTLIN19 = new Runtime('kotlin-1.9');
}
return self::$KOTLIN19;
}
public static function CPP17(): Runtime
{
if (!isset(self::$CPP17)) {
self::$CPP17 = new Runtime('cpp-17');
}
return self::$CPP17;
}
public static function CPP20(): Runtime
{
if (!isset(self::$CPP20)) {
self::$CPP20 = new Runtime('cpp-20');
}
return self::$CPP20;
}
public static function BUN10(): Runtime
{
if (!isset(self::$BUN10)) {
self::$BUN10 = new Runtime('bun-1.0');
}
return self::$BUN10;
}
}