Test Failed
Push — master ( 4486b3...16bdc1 )
by SignpostMarv
02:20
created

Person::GetAffiliation()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 8
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
* @author SignpostMarv
4
*/
5
declare(strict_types=1);
6
7
namespace SignpostMarv\DaftObject\SchemaOrg;
8
9
use SignpostMarv\DaftObject\SchemaOrg\DataTypes\Date;
10
use SignpostMarv\DaftObject\SchemaOrg\Intangible\Brand;
11
use SignpostMarv\DaftObject\SchemaOrg\Intangible\Demand;
12
use SignpostMarv\DaftObject\SchemaOrg\Intangible\Enumeration\GenderType;
13
use SignpostMarv\DaftObject\SchemaOrg\Intangible\ItemList\OfferCatalog;
14
use SignpostMarv\DaftObject\SchemaOrg\Intangible\Language;
15
use SignpostMarv\DaftObject\SchemaOrg\Intangible\Occupation;
16
use SignpostMarv\DaftObject\SchemaOrg\Intangible\ProgramMembership;
17
use SignpostMarv\DaftObject\SchemaOrg\Intangible\Quantity\Distance;
18
use SignpostMarv\DaftObject\SchemaOrg\Intangible\StructuredValue\ContactPoint;
19
use SignpostMarv\DaftObject\SchemaOrg\Intangible\StructuredValue\ContactPoint\PostalAddress;
20
use SignpostMarv\DaftObject\SchemaOrg\Intangible\StructuredValue\MonetaryAmount;
21
use SignpostMarv\DaftObject\SchemaOrg\Intangible\StructuredValue\OwnershipInfo;
22
use SignpostMarv\DaftObject\SchemaOrg\Intangible\StructuredValue\PriceSpecification;
23
use SignpostMarv\DaftObject\SchemaOrg\Intangible\StructuredValue\QuantitativeValue;
24
use SignpostMarv\DaftObject\SchemaOrg\Place\AdministrativeArea\Country;
25
26
/**
27
* @property array<int, string> $additionalName
28
* @property array<int, string|PostalAddress> $address
29
* @property array<int, Organization> $affiliation
30
* @property array<int, Organization> $alumniOf
31
* @property array<int, string> $award
32
* @property array<int, Date> $birthDate
33
* @property array<int, Place> $birthPlace
34
* @property array<int, Brand|Organization> $brand
35
* @property array<int, Person> $children
36
* @property array<int, string|Person> $colleague
37
* @property array<int, ContactPoint> $contactPoint
38
* @property array<int, Date> $deathDate
39
* @property array<int, Place> $deathPlace
40
* @property array<int, string> $duns
41
* @property array<int, string> $email
42
* @property array<int, string> $familyName
43
* @property array<int, string> $faxNumber
44
* @property array<int, Person> $follows
45
* @property array<int, Organization|Person> $funder
46
* @property array<int, string|GenderType> $gender
47
* @property array<int, string> $givenName
48
* @property array<int, string> $globalLocationNumber
49
* @property array<int, Occupation> $hasOccupation
50
* @property array<int, OfferCatalog> $hasOfferCatalog
51
* @property array<int, Place> $hasPOS
52
* @property array<int, Distance|QuantitativeValue> $height
53
* @property array<int, ContactPoint|Place> $homeLocation
54
* @property array<int, string> $honorificPrefix
55
* @property array<int, string> $honorificSuffix
56
* @property array<int, string> $isicV4
57
* @property array<int, string> $jobTitle
58
* @property array<int, Person> $knows
59
* @property array<int, string|Thing> $knowsAbout
60
* @property array<int, string|Language> $knowsLanguage
61
* @property array<int, Offer> $makesOffer
62
* @property array<int, Organization|ProgramMembership> $memberOf
63
* @property array<int, string> $naics
64
* @property array<int, Country> $nationality
65
* @property array<int, MonetaryAmount|PriceSpecification> $netWorth
66
* @property array<int, Person> $parent
67
* @property array<int, Event> $performerIn
68
* @property array<int, OwnershipInfo|Product> $owns
69
* @property array<int, string|CreativeWork> $publishingPrinciples
70
* @property array<int, Person> $relatedTo
71
* @property array<int, Demand> $seeks
72
* @property array<int, Person> $sibling
73
* @property array<int, Organization|Person> $sponsor
74
* @property array<int, Person> $spouse
75
* @property array<int, string> $taxID
76
* @property array<int, string> $telephone
77
* @property array<int, string> $vatID
78
* @property array<int, QuantitativeValue> $weight
79
* @property array<int, ContactPoint|Place> $workLocation
80
* @property array<int, Organization> $worksFor
81
*/
82
class Person extends Thing
83
{
84
    use DaftObjectTraits\HasHeights;
85
    use DaftObjectTraits\HasAddress;
86
    use DaftObjectTraits\HasAward;
87
    use DaftObjectTraits\HasBrand;
88
    use DaftObjectTraits\HasContactPoint;
89
    use DaftObjectTraits\HasDuns;
90
    use DaftObjectTraits\HasEmail;
91
    use DaftObjectTraits\HasFaxNumber;
92
    use DaftObjectTraits\HasFunder;
93
    use DaftObjectTraits\HasGlobalLocationNumber;
94
    use DaftObjectTraits\HasHasOfferCatalog;
95
    use DaftObjectTraits\HasHasPOS;
96
    use DaftObjectTraits\HasIsicV4;
97
    use DaftObjectTraits\HasKnowsAbout;
98
    use DaftObjectTraits\HasKnowsLanguage;
99
    use DaftObjectTraits\HasMakesOffer;
100
    use DaftObjectTraits\HasMemberOf;
101
    use DaftObjectTraits\HasNaics;
102
    use DaftObjectTraits\HasOwns;
103
    use DaftObjectTraits\HasPublishingPrinciples;
104
    use DaftObjectTraits\HasSeeks;
105
    use DaftObjectTraits\HasSponsors;
106
    use DaftObjectTraits\HasTaxID;
107
    use DaftObjectTraits\HasTelephone;
108
    use DaftObjectTraits\HasVatID;
109
    use DaftObjectTraits\Weight;
110
111
    const SCHEMA_ORG_TYPE = 'Person';
112
113
    const PROPERTIES = [
114
        'additionalName',
115
        'address',
116
        'affiliation',
117
        'alumniOf',
118
        'award',
119
        'birthDate',
120
        'birthPlace',
121
        'brand',
122
        'children',
123
        'colleague',
124
        'contactPoint',
125
        'deathDate',
126
        'deathPlace',
127
        'duns',
128
        'email',
129
        'familyName',
130
        'faxNumber',
131
        'follows',
132
        'funder',
133
        'gender',
134
        'givenName',
135
        'globalLocationNumber',
136
        'hasOccupation',
137
        'hasOfferCatalog',
138
        'hasPOS',
139
        'height',
140
        'homeLocation',
141
        'honorificPrefix',
142
        'honorificSuffix',
143
        'isicV4',
144
        'jobTitle',
145
        'knows',
146
        'knowsAbout',
147
        'knowsLanguage',
148
        'makesOffer',
149
        'memberOf',
150
        'naics',
151
        'nationality',
152
        'netWorth',
153
        'owns',
154
        'parent',
155
        'performerIn',
156
        'publishingPrinciples',
157
        'relatedTo',
158
        'seeks',
159
        'sibling',
160
        'sponsor',
161
        'spouse',
162
        'taxID',
163
        'telephone',
164
        'vatID',
165
        'weight',
166
        'workLocation',
167
        'worksFor',
168
    ];
169
170
    const PROPERTIES_WITH_MULTI_TYPED_ARRAYS = [
171
        'additionalName' => [
172
            'string',
173
        ],
174
        'address' => [
175
            'string',
176
            PostalAddress::class,
177
        ],
178
        'affiliation' => [
179
            Organization::class,
180
        ],
181
        'alumniOf' => [
182
            Organization::class,
183
        ],
184
        'award' => [
185
            'string',
186
        ],
187
        'birthDate' => [
188
            Date::class,
189
        ],
190
        'birthPlace' => [
191
            Place::class,
192
        ],
193
        'brand' => [
194
            Brand::class,
195
            Organization::class,
196
        ],
197
        'children' => [
198
            Person::class,
199
        ],
200
        'colleague' => [
201
            'string',
202
            Person::class,
203
        ],
204
        'contactPoint' => [
205
            ContactPoint::class,
206
        ],
207
        'deathDate' => [
208
            Date::class,
209
        ],
210
        'deathPlace' => [
211
            Place::class,
212
        ],
213
        'duns' => [
214
            'string',
215
        ],
216
        'email' => [
217
            'string',
218
        ],
219
        'familyName' => [
220
            'string',
221
        ],
222
        'faxNumber' => [
223
            'string',
224
        ],
225
        'follows' => [
226
            Person::class,
227
        ],
228
        'funder' => [
229
            Organization::class,
230
            Person::class,
231
        ],
232
        'gender' => [
233
            'string',
234
            GenderType::class,
235
        ],
236
        'givenName' => [
237
            'string',
238
        ],
239
        'globalLocationNumber' => [
240
            'string',
241
        ],
242
        'hasOccupation' => [
243
            Occupation::class,
244
        ],
245
        'hasOfferCatalog' => [
246
            OfferCatalog::class,
247
        ],
248
        'hasPOS' => [
249
            Place::class,
250
        ],
251
        'height' => [
252
            Distance::class,
253
            QuantitativeValue::class,
254
        ],
255
        'homeLocation' => [
256
            ContactPoint::class,
257
            Place::class,
258
        ],
259
        'honorificPrefix' => [
260
            'string',
261
        ],
262
        'honorificSuffix' => [
263
            'string',
264
        ],
265
        'isicV4' => [
266
            'string',
267
        ],
268
        'jobTitle' => [
269
            'string',
270
        ],
271
        'knows' => [
272
            Person::class,
273
        ],
274
        'knowsAbout' => [
275
            'string',
276
            Thing::class,
277
        ],
278
        'knowsLanguage' => [
279
            'string',
280
            Language::class,
281
        ],
282
        'makesOffer' => [
283
            Offer::class,
284
        ],
285
        'memberOf' => [
286
            Organization::class,
287
            ProgramMembership::class,
288
        ],
289
        'naics' => [
290
            'string',
291
        ],
292
        'nationality' => [
293
            Country::class,
294
        ],
295
        'netWorth' => [
296
            MonetaryAmount::class,
297
            PriceSpecification::class,
298
        ],
299
        'owns' => [
300
            OwnershipInfo::class,
301
            Product::class,
302
        ],
303
        'parent' => [
304
            Person::class,
305
        ],
306
        'performerIn' => [
307
            Event::class,
308
        ],
309
        'publishingPrinciples' => [
310
            'string',
311
            CreativeWork::class,
312
        ],
313
        'relatedTo' => [
314
            Person::class,
315
        ],
316
        'seeks' => [
317
            Demand::class,
318
        ],
319
        'sibling' => [
320
            Person::class,
321
        ],
322
        'sponsor' => [
323
            Organization::class,
324
            Person::class,
325
        ],
326
        'spouse' => [
327
            Person::class,
328
        ],
329
        'taxID' => [
330
            'string',
331
        ],
332
        'telephone' => [
333
            'string',
334
        ],
335
        'weight' => [
336
            QuantitativeValue::class,
337
        ],
338
        'workLocation' => [
339
            ContactPoint::class,
340
            Place::class,
341
        ],
342
        'worksFor' => [
343
            Organization::class,
344
        ],
345
        'vatID' => [
346
            'string',
347
        ],
348
    ];
349
350
    /**
351
    * @return array<int, string>
352 88
    */
353
    public function GetAdditionalName() : array
354
    {
355
        /**
356
        * @var array<int, string>
357 88
        */
358
        $out = $this->ExpectRetrievedValueIsArray('additionalName');
359 88
360
        return $out;
361
    }
362
363
    /**
364
    * @param array<int, string> $value
365 1
    */
366
    public function SetAdditionalName(array $value) : void
367 1
    {
368 1
        $this->NudgePropertyValue('additionalName', $value, true);
369
    }
370
371
    /**
372
    * @return array<int, Organization>
373 88
    */
374
    public function GetAffiliation() : array
375
    {
376
        /**
377
        * @var array<int, Organization>
378 88
        */
379
        $out = $this->ExpectRetrievedValueIsArray('affiliation');
380 88
381
        return $out;
382
    }
383
384
    /**
385
    * @param array<int, Organization> $value
386 1
    */
387
    public function SetAffiliation(array $value) : void
388 1
    {
389 1
        $this->NudgePropertyValue('affiliation', $value);
390
    }
391
392
    /**
393
    * @return array<int, Organization>
394 88
    */
395
    public function GetAlumniOf() : array
396
    {
397
        /**
398
        * @var array<int, Organization>
399 88
        */
400
        $out = $this->ExpectRetrievedValueIsArray('alumniOf');
401 88
402
        return $out;
403
    }
404
405
    /**
406
    * @param array<int, Organization> $value
407 1
    */
408
    public function SetAlumniOf(array $value) : void
409 1
    {
410 1
        $this->NudgePropertyValue('alumniOf', $value);
411
    }
412
413
    /**
414
    * @return array<int, Date>
415 88
    */
416
    public function GetBirthDate() : array
417
    {
418
        /**
419
        * @var array<int, Date>
420 88
        */
421
        $out = $this->ExpectRetrievedValueIsArray('birthDate');
422 88
423
        return $out;
424
    }
425
426
    /**
427
    * @param array<int, Date> $value
428 1
    */
429
    public function SetBirthDate(array $value) : void
430 1
    {
431 1
        $this->NudgePropertyValue('birthDate', $value);
432
    }
433
434
    /**
435
    * @return array<int, Place>
436 88
    */
437
    public function GetBirthPlace() : array
438
    {
439
        /**
440
        * @var array<int, Place>
441 88
        */
442
        $out = $this->ExpectRetrievedValueIsArray('birthPlace');
443 88
444
        return $out;
445
    }
446
447
    /**
448
    * @param array<int, Place> $value
449 1
    */
450
    public function SetBirthPlace(array $value) : void
451 1
    {
452 1
        $this->NudgePropertyValue('birthPlace', $value);
453
    }
454
455
    /**
456
    * @return array<int, Person>
457 88
    */
458
    public function GetChildren() : array
459
    {
460
        /**
461
        * @var array<int, Person>
462 88
        */
463
        $out = $this->ExpectRetrievedValueIsArray('children');
464 88
465
        return $out;
466
    }
467
468
    /**
469
    * @param array<int, Person> $value
470 1
    */
471
    public function SetChildren(array $value) : void
472 1
    {
473 1
        $this->NudgePropertyValue('children', $value);
474
    }
475
476
    /**
477
    * @return array<int, string|Person>
478 88
    */
479
    public function GetColleague() : array
480
    {
481
        /**
482
        * @var array<int, string|Person>
483 88
        */
484
        $out = $this->ExpectRetrievedValueIsArray('colleague');
485 88
486
        return $out;
487
    }
488
489
    /**
490
    * @param array<int, string|Person> $value
491 1
    */
492
    public function SetColleague(array $value) : void
493 1
    {
494 1
        $this->NudgePropertyValue('colleague', $value, true);
495
    }
496
497
    /**
498
    * @return array<int, Date>
499 88
    */
500
    public function GetDeathDate() : array
501
    {
502
        /**
503
        * @var array<int, Date>
504 88
        */
505
        $out = $this->ExpectRetrievedValueIsArray('deathDate');
506 88
507
        return $out;
508
    }
509
510
    /**
511
    * @param array<int, Date> $value
512 1
    */
513
    public function SetDeathDate(array $value) : void
514 1
    {
515 1
        $this->NudgePropertyValue('deathDate', $value);
516
    }
517
518
    /**
519
    * @return array<int, Place>
520 88
    */
521
    public function GetDeathPlace() : array
522
    {
523
        /**
524
        * @var array<int, Place>
525 88
        */
526
        $out = $this->ExpectRetrievedValueIsArray('deathPlace');
527 88
528
        return $out;
529
    }
530
531
    /**
532
    * @param array<int, Place> $value
533 1
    */
534
    public function SetDeathPlace(array $value) : void
535 1
    {
536 1
        $this->NudgePropertyValue('deathPlace', $value);
537
    }
538
539
    /**
540
    * @return array<int, string>
541 88
    */
542
    public function GetFamilyName() : array
543
    {
544
        /**
545
        * @var array<int, string>
546 88
        */
547
        $out = $this->ExpectRetrievedValueIsArray('familyName');
548 88
549
        return $out;
550
    }
551
552
    /**
553
    * @param array<int, string> $value
554 1
    */
555
    public function SetFamilyName(array $value) : void
556 1
    {
557 1
        $this->NudgePropertyValue('familyName', $value, true);
558
    }
559
560
    /**
561
    * @return array<int, Person>
562 88
    */
563
    public function GetFollows() : array
564
    {
565
        /**
566
        * @var array<int, Person>
567 88
        */
568
        $out = $this->ExpectRetrievedValueIsArray('follows');
569 88
570
        return $out;
571
    }
572
573
    /**
574
    * @param array<int, Person> $value
575 1
    */
576
    public function SetFollows(array $value) : void
577 1
    {
578 1
        $this->NudgePropertyValue('follows', $value);
579
    }
580
581
    /**
582
    * @return array<int, string|GenderType>
583 88
    */
584
    public function GetGender() : array
585
    {
586
        /**
587
        * @var array<int, string|GenderType>
588 88
        */
589
        $out = $this->ExpectRetrievedValueIsArray('gender');
590 88
591
        return $out;
592
    }
593
594
    /**
595
    * @param array<int, string|GenderType> $value
596 1
    */
597
    public function SetGender(array $value) : void
598 1
    {
599 1
        $this->NudgePropertyValue('gender', $value, true);
600
    }
601
602
    /**
603
    * @return array<int, string>
604 88
    */
605
    public function GetGivenName() : array
606
    {
607
        /**
608
        * @var array<int, string>
609 88
        */
610
        $out = $this->ExpectRetrievedValueIsArray('givenName');
611 88
612
        return $out;
613
    }
614
615
    /**
616
    * @param array<int, string> $value
617 1
    */
618
    public function SetGivenName(array $value) : void
619 1
    {
620 1
        $this->NudgePropertyValue('givenName', $value, true);
621
    }
622
623
    /**
624
    * @return array<int, Occupation>
625 88
    */
626
    public function GetHasOccupation() : array
627
    {
628
        /**
629
        * @var array<int, Occupation>
630 88
        */
631
        $out = $this->ExpectRetrievedValueIsArray('hasOccupation');
632 88
633
        return $out;
634
    }
635
636
    /**
637
    * @param array<int, Occupation> $value
638 1
    */
639
    public function SetHasOccupation(array $value) : void
640 1
    {
641 1
        $this->NudgePropertyValue('hasOccupation', $value);
642
    }
643
644
    /**
645
    * @return array<int, ContactPoint|Place>
646 88
    */
647
    public function GetHomeLocation() : array
648
    {
649
        /**
650
        * @var array<int, ContactPoint|Place>
651 88
        */
652
        $out = $this->ExpectRetrievedValueIsArray('homeLocation');
653 88
654
        return $out;
655
    }
656
657
    /**
658
    * @param array<int, ContactPoint|Place> $value
659 1
    */
660
    public function SetHomeLocation(array $value) : void
661 1
    {
662 1
        $this->NudgePropertyValue('homeLocation', $value);
663
    }
664
665
    /**
666
    * @return array<int, string>
667 88
    */
668
    public function GetHonorificPrefix() : array
669
    {
670
        /**
671
        * @var array<int, string>
672 88
        */
673
        $out = $this->ExpectRetrievedValueIsArray('honorificPrefix');
674 88
675
        return $out;
676
    }
677
678
    /**
679
    * @param array<int, string> $value
680 1
    */
681
    public function SetHonorificPrefix(array $value) : void
682 1
    {
683 1
        $this->NudgePropertyValue('honorificPrefix', $value, true);
684
    }
685
686
    /**
687
    * @return array<int, string>
688 88
    */
689
    public function GetHonorificSuffix() : array
690
    {
691
        /**
692
        * @var array<int, string>
693 88
        */
694
        $out = $this->ExpectRetrievedValueIsArray('honorificSuffix');
695 88
696
        return $out;
697
    }
698
699
    /**
700
    * @param array<int, string> $value
701 1
    */
702
    public function SetHonorificSuffix(array $value) : void
703 1
    {
704 1
        $this->NudgePropertyValue('honorificSuffix', $value, true);
705
    }
706
707
    /**
708
    * @return array<int, string>
709 88
    */
710
    public function GetJobTitle() : array
711
    {
712
        /**
713
        * @var array<int, string>
714 88
        */
715
        $out = $this->ExpectRetrievedValueIsArray('jobTitle');
716 88
717
        return $out;
718
    }
719
720
    /**
721
    * @param array<int, string> $value
722 1
    */
723
    public function SetJobTitle(array $value) : void
724 1
    {
725 1
        $this->NudgePropertyValue('jobTitle', $value, true);
726
    }
727
728
    /**
729
    * @return array<int, Person>
730 88
    */
731
    public function GetKnows() : array
732
    {
733
        /**
734
        * @var array<int, Person>
735 88
        */
736
        $out = $this->ExpectRetrievedValueIsArray('knows');
737 88
738
        return $out;
739
    }
740
741
    /**
742
    * @param array<int, Person> $value
743 1
    */
744
    public function SetKnows(array $value) : void
745 1
    {
746 1
        $this->NudgePropertyValue('knows', $value);
747
    }
748
749
    /**
750
    * @return array<int, Country>
751 88
    */
752
    public function GetNationality() : array
753
    {
754
        /**
755
        * @var array<int, Country>
756 88
        */
757
        $out = $this->ExpectRetrievedValueIsArray('nationality');
758 88
759
        return $out;
760
    }
761
762
    /**
763
    * @param array<int, Country> $value
764 1
    */
765
    public function SetNationality(array $value) : void
766 1
    {
767 1
        $this->NudgePropertyValue('nationality', $value);
768
    }
769
770
    /**
771
    * @return array<int, MonetaryAmount|PriceSpecification>
772 88
    */
773
    public function GetNetWorth() : array
774
    {
775
        /**
776
        * @var array<int, MonetaryAmount|PriceSpecification>
777 88
        */
778
        $out = $this->ExpectRetrievedValueIsArray('netWorth');
779 88
780
        return $out;
781
    }
782
783
    /**
784
    * @param array<int, MonetaryAmount|PriceSpecification> $value
785 1
    */
786
    public function SetNetWorth(array $value) : void
787 1
    {
788 1
        $this->NudgePropertyValue('netWorth', $value);
789
    }
790
791
    /**
792
    * @return array<int, Person>
793 88
    */
794
    public function GetParent() : array
795
    {
796
        /**
797
        * @var array<int, Person>
798 88
        */
799
        $out = $this->ExpectRetrievedValueIsArray('parent');
800 88
801
        return $out;
802
    }
803
804
    /**
805
    * @param array<int, Person> $value
806 1
    */
807
    public function SetParent(array $value) : void
808 1
    {
809 1
        $this->NudgePropertyValue('parent', $value);
810
    }
811
812
    /**
813
    * @return array<int, Event>
814 88
    */
815
    public function GetPerformerIn() : array
816
    {
817
        /**
818
        * @var array<int, Event>
819 88
        */
820
        $out = $this->ExpectRetrievedValueIsArray('performerIn');
821 88
822
        return $out;
823
    }
824
825
    /**
826
    * @param array<int, Event> $value
827 1
    */
828
    public function SetPerformerIn(array $value) : void
829 1
    {
830 1
        $this->NudgePropertyValue('performerIn', $value);
831
    }
832
833
    /**
834
    * @return array<int, Person>
835 88
    */
836
    public function GetRelatedTo() : array
837
    {
838
        /**
839
        * @var array<int, Person>
840 88
        */
841
        $out = $this->ExpectRetrievedValueIsArray('relatedTo');
842 88
843
        return $out;
844
    }
845
846
    /**
847
    * @param array<int, Person> $value
848 1
    */
849
    public function SetRelatedTo(array $value) : void
850 1
    {
851 1
        $this->NudgePropertyValue('relatedTo', $value);
852
    }
853
854
    /**
855
    * @return array<int, Person>
856 88
    */
857
    public function GetSibling() : array
858
    {
859
        /**
860
        * @var array<int, Person>
861 88
        */
862
        $out = $this->ExpectRetrievedValueIsArray('sibling');
863 88
864
        return $out;
865
    }
866
867
    /**
868
    * @param array<int, Person> $value
869 1
    */
870
    public function SetSibling(array $value) : void
871 1
    {
872 1
        $this->NudgePropertyValue('sibling', $value);
873
    }
874
875
    /**
876
    * @return array<int, Person>
877 88
    */
878
    public function GetSpouse() : array
879
    {
880
        /**
881
        * @var array<int, Person>
882 88
        */
883
        $out = $this->ExpectRetrievedValueIsArray('spouse');
884 88
885
        return $out;
886
    }
887
888
    /**
889
    * @param array<int, Person> $value
890 1
    */
891
    public function SetSpouse(array $value) : void
892 1
    {
893 1
        $this->NudgePropertyValue('spouse', $value);
894
    }
895
896
    /**
897
    * @return array<int, ContactPoint|Place>
898 88
    */
899
    public function GetWorkLocation() : array
900
    {
901
        /**
902
        * @var array<int, ContactPoint|Place>
903 88
        */
904
        $out = $this->ExpectRetrievedValueIsArray('workLocation');
905 88
906
        return $out;
907
    }
908
909
    /**
910
    * @param array<int, ContactPoint|Place> $value
911 1
    */
912
    public function SetWorkLocation(array $value) : void
913 1
    {
914 1
        $this->NudgePropertyValue('workLocation', $value);
915
    }
916
917
    /**
918
    * @return array<int, Organization>
919 88
    */
920
    public function GetWorksFor() : array
921
    {
922
        /**
923
        * @var array<int, Organization>
924 88
        */
925
        $out = $this->ExpectRetrievedValueIsArray('worksFor');
926 88
927
        return $out;
928
    }
929
930
    /**
931
    * @param array<int, Organization> $value
932 1
    */
933
    public function SetWorksFor(array $value) : void
934 1
    {
935 1
        $this->NudgePropertyValue('worksFor', $value);
936
    }
937
}
938