/
Types.php
2232 lines (2163 loc) · 58.4 KB
/
Types.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
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?php
namespace RedRoma\Aroma;
/**
* Autogenerated by Thrift Compiler (0.9.3)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
use Thrift\Base\TBase;
use Thrift\Type\TType;
use Thrift\Type\TMessageType;
use Thrift\Exception\TException;
use Thrift\Exception\TProtocolException;
use Thrift\Protocol\TProtocol;
use Thrift\Protocol\TBinaryProtocolAccelerated;
use Thrift\Exception\TApplicationException;
final class ImageType {
const JPEG = 1;
const PNG = 2;
static public $__names = array(
1 => 'JPEG',
2 => 'PNG',
);
}
final class Industry {
const BANKING = 1;
const ECOMMERCE = 2;
const EDUCATION = 3;
const ENTERTAINMENT = 4;
const GOVERMENT = 5;
const MARKETING = 6;
const RETAIL = 7;
const TECH = 8;
const AEROSPACE = 9;
const ROBOTICS = 10;
static public $__names = array(
1 => 'BANKING',
2 => 'ECOMMERCE',
3 => 'EDUCATION',
4 => 'ENTERTAINMENT',
5 => 'GOVERMENT',
6 => 'MARKETING',
7 => 'RETAIL',
8 => 'TECH',
9 => 'AEROSPACE',
10 => 'ROBOTICS',
);
}
final class Tier {
const FREE = 1;
const PAID = 2;
static public $__names = array(
1 => 'FREE',
2 => 'PAID',
);
}
/**
* Defines the basic Units of Time Measurement.
*/
final class TimeUnit {
const MILLIS = 1;
const SECONDS = 2;
const MINUTES = 3;
const HOURS = 4;
const DAYS = 5;
const WEEKS = 6;
static public $__names = array(
1 => 'MILLIS',
2 => 'SECONDS',
3 => 'MINUTES',
4 => 'HOURS',
5 => 'DAYS',
6 => 'WEEKS',
);
}
/**
* Applications are usually written in one main language.
*/
final class ProgrammingLanguage {
const JAVA = 1;
const CPP = 2;
const C_SHARP = 3;
const C = 4;
const OBJECTIVE_C = 5;
const SWIFT = 6;
const DOT_NET = 7;
const RUBY = 8;
const GROOVY = 9;
const PYTHON = 10;
const PHP = 11;
const NODE = 12;
const DART = 13;
const OTHER = 14;
static public $__names = array(
1 => 'JAVA',
2 => 'CPP',
3 => 'C_SHARP',
4 => 'C',
5 => 'OBJECTIVE_C',
6 => 'SWIFT',
7 => 'DOT_NET',
8 => 'RUBY',
9 => 'GROOVY',
10 => 'PYTHON',
11 => 'PHP',
12 => 'NODE',
13 => 'DART',
14 => 'OTHER',
);
}
/**
* Defines the Role(s) that a human in this system
* can be.
*/
final class Role {
const DEVELOPER = 1;
const OPERATIONS = 2;
const MANAGER = 3;
const PRODUCT = 4;
const QA = 5;
const FAN = 6;
static public $__names = array(
1 => 'DEVELOPER',
2 => 'OPERATIONS',
3 => 'MANAGER',
4 => 'PRODUCT',
5 => 'QA',
6 => 'FAN',
);
}
/**
* Determines how Important or Severe a Message is.
*/
final class Urgency {
/**
* Lowest level of urgency.
*/
const LOW = 1;
/**
* Middle level of urgency.
*/
const MEDIUM = 2;
/**
* Highest level of urgency.
*/
const HIGH = 3;
static public $__names = array(
1 => 'LOW',
2 => 'MEDIUM',
3 => 'HIGH',
);
}
/**
* Defines a Period of Time, or a Length of Time.
*/
class LengthOfTime {
static $_TSPEC;
/**
* @var int
*/
public $unit = null;
/**
* The Value must be non-negative
*
* @var int
*/
public $value = null;
public function __construct($vals=null) {
if (!isset(self::$_TSPEC)) {
self::$_TSPEC = array(
1 => array(
'var' => 'unit',
'type' => TType::I32,
),
2 => array(
'var' => 'value',
'type' => TType::I64,
),
);
}
if (is_array($vals)) {
if (isset($vals['unit'])) {
$this->unit = $vals['unit'];
}
if (isset($vals['value'])) {
$this->value = $vals['value'];
}
}
}
public function getName() {
return 'LengthOfTime';
}
public function read($input)
{
$xfer = 0;
$fname = null;
$ftype = 0;
$fid = 0;
$xfer += $input->readStructBegin($fname);
while (true)
{
$xfer += $input->readFieldBegin($fname, $ftype, $fid);
if ($ftype == TType::STOP) {
break;
}
switch ($fid)
{
case 1:
if ($ftype == TType::I32) {
$xfer += $input->readI32($this->unit);
} else {
$xfer += $input->skip($ftype);
}
break;
case 2:
if ($ftype == TType::I64) {
$xfer += $input->readI64($this->value);
} else {
$xfer += $input->skip($ftype);
}
break;
default:
$xfer += $input->skip($ftype);
break;
}
$xfer += $input->readFieldEnd();
}
$xfer += $input->readStructEnd();
return $xfer;
}
public function write($output) {
$xfer = 0;
$xfer += $output->writeStructBegin('LengthOfTime');
if ($this->unit !== null) {
$xfer += $output->writeFieldBegin('unit', TType::I32, 1);
$xfer += $output->writeI32($this->unit);
$xfer += $output->writeFieldEnd();
}
if ($this->value !== null) {
$xfer += $output->writeFieldBegin('value', TType::I64, 2);
$xfer += $output->writeI64($this->value);
$xfer += $output->writeFieldEnd();
}
$xfer += $output->writeFieldStop();
$xfer += $output->writeStructEnd();
return $xfer;
}
}
/**
* 2 Dimensional Image Size.
*/
class Dimension {
static $_TSPEC;
/**
* @var int
*/
public $width = null;
/**
* @var int
*/
public $height = null;
public function __construct($vals=null) {
if (!isset(self::$_TSPEC)) {
self::$_TSPEC = array(
1 => array(
'var' => 'width',
'type' => TType::I32,
),
2 => array(
'var' => 'height',
'type' => TType::I32,
),
);
}
if (is_array($vals)) {
if (isset($vals['width'])) {
$this->width = $vals['width'];
}
if (isset($vals['height'])) {
$this->height = $vals['height'];
}
}
}
public function getName() {
return 'Dimension';
}
public function read($input)
{
$xfer = 0;
$fname = null;
$ftype = 0;
$fid = 0;
$xfer += $input->readStructBegin($fname);
while (true)
{
$xfer += $input->readFieldBegin($fname, $ftype, $fid);
if ($ftype == TType::STOP) {
break;
}
switch ($fid)
{
case 1:
if ($ftype == TType::I32) {
$xfer += $input->readI32($this->width);
} else {
$xfer += $input->skip($ftype);
}
break;
case 2:
if ($ftype == TType::I32) {
$xfer += $input->readI32($this->height);
} else {
$xfer += $input->skip($ftype);
}
break;
default:
$xfer += $input->skip($ftype);
break;
}
$xfer += $input->readFieldEnd();
}
$xfer += $input->readStructEnd();
return $xfer;
}
public function write($output) {
$xfer = 0;
$xfer += $output->writeStructBegin('Dimension');
if ($this->width !== null) {
$xfer += $output->writeFieldBegin('width', TType::I32, 1);
$xfer += $output->writeI32($this->width);
$xfer += $output->writeFieldEnd();
}
if ($this->height !== null) {
$xfer += $output->writeFieldBegin('height', TType::I32, 2);
$xfer += $output->writeI32($this->height);
$xfer += $output->writeFieldEnd();
}
$xfer += $output->writeFieldStop();
$xfer += $output->writeStructEnd();
return $xfer;
}
}
class Image {
static $_TSPEC;
/**
* @var int
*/
public $imageType = null;
/**
* @var string
*/
public $data = null;
/**
* @var \RedRoma\Aroma\Dimension
*/
public $dimension = null;
public function __construct($vals=null) {
if (!isset(self::$_TSPEC)) {
self::$_TSPEC = array(
1 => array(
'var' => 'imageType',
'type' => TType::I32,
),
2 => array(
'var' => 'data',
'type' => TType::STRING,
),
3 => array(
'var' => 'dimension',
'type' => TType::STRUCT,
'class' => '\RedRoma\Aroma\Dimension',
),
);
}
if (is_array($vals)) {
if (isset($vals['imageType'])) {
$this->imageType = $vals['imageType'];
}
if (isset($vals['data'])) {
$this->data = $vals['data'];
}
if (isset($vals['dimension'])) {
$this->dimension = $vals['dimension'];
}
}
}
public function getName() {
return 'Image';
}
public function read($input)
{
$xfer = 0;
$fname = null;
$ftype = 0;
$fid = 0;
$xfer += $input->readStructBegin($fname);
while (true)
{
$xfer += $input->readFieldBegin($fname, $ftype, $fid);
if ($ftype == TType::STOP) {
break;
}
switch ($fid)
{
case 1:
if ($ftype == TType::I32) {
$xfer += $input->readI32($this->imageType);
} else {
$xfer += $input->skip($ftype);
}
break;
case 2:
if ($ftype == TType::STRING) {
$xfer += $input->readString($this->data);
} else {
$xfer += $input->skip($ftype);
}
break;
case 3:
if ($ftype == TType::STRUCT) {
$this->dimension = new \RedRoma\Aroma\Dimension();
$xfer += $this->dimension->read($input);
} else {
$xfer += $input->skip($ftype);
}
break;
default:
$xfer += $input->skip($ftype);
break;
}
$xfer += $input->readFieldEnd();
}
$xfer += $input->readStructEnd();
return $xfer;
}
public function write($output) {
$xfer = 0;
$xfer += $output->writeStructBegin('Image');
if ($this->imageType !== null) {
$xfer += $output->writeFieldBegin('imageType', TType::I32, 1);
$xfer += $output->writeI32($this->imageType);
$xfer += $output->writeFieldEnd();
}
if ($this->data !== null) {
$xfer += $output->writeFieldBegin('data', TType::STRING, 2);
$xfer += $output->writeString($this->data);
$xfer += $output->writeFieldEnd();
}
if ($this->dimension !== null) {
if (!is_object($this->dimension)) {
throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
}
$xfer += $output->writeFieldBegin('dimension', TType::STRUCT, 3);
$xfer += $this->dimension->write($output);
$xfer += $output->writeFieldEnd();
}
$xfer += $output->writeFieldStop();
$xfer += $output->writeStructEnd();
return $xfer;
}
}
class Message {
static $_TSPEC;
/**
* Each message has a unique ID
*
* @var string
*/
public $messageId = null;
/**
* The body represents the Message's Payload, i.e. the actual message.
* If the Message Body is too long, it may be truncated. The complete
* body can then be loaded in a separate request.
*
* @var string
*/
public $body = null;
/**
* @var int
*/
public $urgency = 1;
/**
* The time the message was created on the Application side
*
* @var int
*/
public $timeOfCreation = null;
/**
* The time the message was received on the Server side
*
* @var int
*/
public $timeMessageReceived = null;
/**
* Name of the Application that sent the message.
*
* @var string
*/
public $applicationName = null;
/**
* The Network Hostname of the Device sending the message, ideally the FQDM.
*
* @var string
*/
public $hostname = null;
/**
* @var string
*/
public $macAddress = null;
/**
* @var bool
*/
public $isTruncated = false;
/**
* @var string
*/
public $title = null;
/**
* The ID of the Application the Message was sent from.
*
* @var string
*/
public $applicationId = null;
/**
* @var string
*/
public $deviceName = null;
public function __construct($vals=null) {
if (!isset(self::$_TSPEC)) {
self::$_TSPEC = array(
1 => array(
'var' => 'messageId',
'type' => TType::STRING,
),
2 => array(
'var' => 'body',
'type' => TType::STRING,
),
3 => array(
'var' => 'urgency',
'type' => TType::I32,
),
4 => array(
'var' => 'timeOfCreation',
'type' => TType::I64,
),
5 => array(
'var' => 'timeMessageReceived',
'type' => TType::I64,
),
6 => array(
'var' => 'applicationName',
'type' => TType::STRING,
),
7 => array(
'var' => 'hostname',
'type' => TType::STRING,
),
8 => array(
'var' => 'macAddress',
'type' => TType::STRING,
),
9 => array(
'var' => 'isTruncated',
'type' => TType::BOOL,
),
10 => array(
'var' => 'title',
'type' => TType::STRING,
),
11 => array(
'var' => 'applicationId',
'type' => TType::STRING,
),
12 => array(
'var' => 'deviceName',
'type' => TType::STRING,
),
);
}
if (is_array($vals)) {
if (isset($vals['messageId'])) {
$this->messageId = $vals['messageId'];
}
if (isset($vals['body'])) {
$this->body = $vals['body'];
}
if (isset($vals['urgency'])) {
$this->urgency = $vals['urgency'];
}
if (isset($vals['timeOfCreation'])) {
$this->timeOfCreation = $vals['timeOfCreation'];
}
if (isset($vals['timeMessageReceived'])) {
$this->timeMessageReceived = $vals['timeMessageReceived'];
}
if (isset($vals['applicationName'])) {
$this->applicationName = $vals['applicationName'];
}
if (isset($vals['hostname'])) {
$this->hostname = $vals['hostname'];
}
if (isset($vals['macAddress'])) {
$this->macAddress = $vals['macAddress'];
}
if (isset($vals['isTruncated'])) {
$this->isTruncated = $vals['isTruncated'];
}
if (isset($vals['title'])) {
$this->title = $vals['title'];
}
if (isset($vals['applicationId'])) {
$this->applicationId = $vals['applicationId'];
}
if (isset($vals['deviceName'])) {
$this->deviceName = $vals['deviceName'];
}
}
}
public function getName() {
return 'Message';
}
public function read($input)
{
$xfer = 0;
$fname = null;
$ftype = 0;
$fid = 0;
$xfer += $input->readStructBegin($fname);
while (true)
{
$xfer += $input->readFieldBegin($fname, $ftype, $fid);
if ($ftype == TType::STOP) {
break;
}
switch ($fid)
{
case 1:
if ($ftype == TType::STRING) {
$xfer += $input->readString($this->messageId);
} else {
$xfer += $input->skip($ftype);
}
break;
case 2:
if ($ftype == TType::STRING) {
$xfer += $input->readString($this->body);
} else {
$xfer += $input->skip($ftype);
}
break;
case 3:
if ($ftype == TType::I32) {
$xfer += $input->readI32($this->urgency);
} else {
$xfer += $input->skip($ftype);
}
break;
case 4:
if ($ftype == TType::I64) {
$xfer += $input->readI64($this->timeOfCreation);
} else {
$xfer += $input->skip($ftype);
}
break;
case 5:
if ($ftype == TType::I64) {
$xfer += $input->readI64($this->timeMessageReceived);
} else {
$xfer += $input->skip($ftype);
}
break;
case 6:
if ($ftype == TType::STRING) {
$xfer += $input->readString($this->applicationName);
} else {
$xfer += $input->skip($ftype);
}
break;
case 7:
if ($ftype == TType::STRING) {
$xfer += $input->readString($this->hostname);
} else {
$xfer += $input->skip($ftype);
}
break;
case 8:
if ($ftype == TType::STRING) {
$xfer += $input->readString($this->macAddress);
} else {
$xfer += $input->skip($ftype);
}
break;
case 9:
if ($ftype == TType::BOOL) {
$xfer += $input->readBool($this->isTruncated);
} else {
$xfer += $input->skip($ftype);
}
break;
case 10:
if ($ftype == TType::STRING) {
$xfer += $input->readString($this->title);
} else {
$xfer += $input->skip($ftype);
}
break;
case 11:
if ($ftype == TType::STRING) {
$xfer += $input->readString($this->applicationId);
} else {
$xfer += $input->skip($ftype);
}
break;
case 12:
if ($ftype == TType::STRING) {
$xfer += $input->readString($this->deviceName);
} else {
$xfer += $input->skip($ftype);
}
break;
default:
$xfer += $input->skip($ftype);
break;
}
$xfer += $input->readFieldEnd();
}
$xfer += $input->readStructEnd();
return $xfer;
}
public function write($output) {
$xfer = 0;
$xfer += $output->writeStructBegin('Message');
if ($this->messageId !== null) {
$xfer += $output->writeFieldBegin('messageId', TType::STRING, 1);
$xfer += $output->writeString($this->messageId);
$xfer += $output->writeFieldEnd();
}
if ($this->body !== null) {
$xfer += $output->writeFieldBegin('body', TType::STRING, 2);
$xfer += $output->writeString($this->body);
$xfer += $output->writeFieldEnd();
}
if ($this->urgency !== null) {
$xfer += $output->writeFieldBegin('urgency', TType::I32, 3);
$xfer += $output->writeI32($this->urgency);
$xfer += $output->writeFieldEnd();
}
if ($this->timeOfCreation !== null) {
$xfer += $output->writeFieldBegin('timeOfCreation', TType::I64, 4);
$xfer += $output->writeI64($this->timeOfCreation);
$xfer += $output->writeFieldEnd();
}
if ($this->timeMessageReceived !== null) {
$xfer += $output->writeFieldBegin('timeMessageReceived', TType::I64, 5);
$xfer += $output->writeI64($this->timeMessageReceived);
$xfer += $output->writeFieldEnd();
}
if ($this->applicationName !== null) {
$xfer += $output->writeFieldBegin('applicationName', TType::STRING, 6);
$xfer += $output->writeString($this->applicationName);
$xfer += $output->writeFieldEnd();
}
if ($this->hostname !== null) {
$xfer += $output->writeFieldBegin('hostname', TType::STRING, 7);
$xfer += $output->writeString($this->hostname);
$xfer += $output->writeFieldEnd();
}
if ($this->macAddress !== null) {
$xfer += $output->writeFieldBegin('macAddress', TType::STRING, 8);
$xfer += $output->writeString($this->macAddress);
$xfer += $output->writeFieldEnd();
}
if ($this->isTruncated !== null) {
$xfer += $output->writeFieldBegin('isTruncated', TType::BOOL, 9);
$xfer += $output->writeBool($this->isTruncated);
$xfer += $output->writeFieldEnd();
}
if ($this->title !== null) {
$xfer += $output->writeFieldBegin('title', TType::STRING, 10);
$xfer += $output->writeString($this->title);
$xfer += $output->writeFieldEnd();
}
if ($this->applicationId !== null) {
$xfer += $output->writeFieldBegin('applicationId', TType::STRING, 11);
$xfer += $output->writeString($this->applicationId);
$xfer += $output->writeFieldEnd();
}
if ($this->deviceName !== null) {
$xfer += $output->writeFieldBegin('deviceName', TType::STRING, 12);
$xfer += $output->writeString($this->deviceName);
$xfer += $output->writeFieldEnd();
}
$xfer += $output->writeFieldStop();
$xfer += $output->writeStructEnd();
return $xfer;
}
}
/**
* An Organization can represent a Company or group of People.
*/
class Organization {
static $_TSPEC;
/**
* @var string
*/
public $organizationId = null;
/**
* @var string
*/
public $organizationName = null;
/**
* @var string
*/
public $website = null;
/**
* @var \RedRoma\Aroma\Image
*/
public $logo = null;
/**
* @var string
*/
public $techStack = null;
/**
* @var string[]
*/
public $owners = null;
/**
* @var string
*/
public $organizationEmail = null;
/**
* @var string
*/
public $stockMarketSymbol = null;
/**
* @var string
*/
public $logoLink = null;
/**
* @var int
*/
public $industry = null;
/**
* @var int
*/
public $tier = 1;
/**
* @var string
*/
public $organizationDescription = null;
/**
* A Link to the Org's GitHub Page, if available.
*
* @var string
*/
public $githubProfile = null;
public function __construct($vals=null) {
if (!isset(self::$_TSPEC)) {
self::$_TSPEC = array(
1 => array(
'var' => 'organizationId',
'type' => TType::STRING,
),
2 => array(
'var' => 'organizationName',
'type' => TType::STRING,
),
3 => array(
'var' => 'website',
'type' => TType::STRING,
),
4 => array(
'var' => 'logo',
'type' => TType::STRUCT,
'class' => '\RedRoma\Aroma\Image',
),
5 => array(
'var' => 'techStack',
'type' => TType::STRING,
),
6 => array(
'var' => 'owners',
'type' => TType::LST,
'etype' => TType::STRING,
'elem' => array(
'type' => TType::STRING,
),
),
7 => array(
'var' => 'organizationEmail',
'type' => TType::STRING,
),
8 => array(
'var' => 'stockMarketSymbol',
'type' => TType::STRING,
),
9 => array(
'var' => 'logoLink',
'type' => TType::STRING,
),
10 => array(
'var' => 'industry',
'type' => TType::I32,
),
11 => array(
'var' => 'tier',
'type' => TType::I32,
),
12 => array(
'var' => 'organizationDescription',
'type' => TType::STRING,
),
13 => array(
'var' => 'githubProfile',
'type' => TType::STRING,
),
);
}
if (is_array($vals)) {
if (isset($vals['organizationId'])) {
$this->organizationId = $vals['organizationId'];
}
if (isset($vals['organizationName'])) {
$this->organizationName = $vals['organizationName'];
}
if (isset($vals['website'])) {
$this->website = $vals['website'];
}
if (isset($vals['logo'])) {
$this->logo = $vals['logo'];
}
if (isset($vals['techStack'])) {
$this->techStack = $vals['techStack'];
}
if (isset($vals['owners'])) {
$this->owners = $vals['owners'];
}
if (isset($vals['organizationEmail'])) {
$this->organizationEmail = $vals['organizationEmail'];
}
if (isset($vals['stockMarketSymbol'])) {
$this->stockMarketSymbol = $vals['stockMarketSymbol'];
}
if (isset($vals['logoLink'])) {
$this->logoLink = $vals['logoLink'];
}
if (isset($vals['industry'])) {
$this->industry = $vals['industry'];
}
if (isset($vals['tier'])) {
$this->tier = $vals['tier'];
}
if (isset($vals['organizationDescription'])) {
$this->organizationDescription = $vals['organizationDescription'];
}
if (isset($vals['githubProfile'])) {
$this->githubProfile = $vals['githubProfile'];
}
}