Person::SetHonorificSuffix()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
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' => TypeUtilities::MULTI_TYPE_DICT__address,
175
        'affiliation' => [
176
            Organization::class,
177
        ],
178
        'alumniOf' => [
179
            Organization::class,
180
        ],
181
        'award' => [
182
            'string',
183
        ],
184
        'birthDate' => [
185
            Date::class,
186
        ],
187
        'birthPlace' => [
188
            Place::class,
189
        ],
190
        'brand' => [
191
            Brand::class,
192
            Organization::class,
193
        ],
194
        'children' => [
195
            Person::class,
196
        ],
197
        'colleague' => [
198
            'string',
199
            Person::class,
200
        ],
201
        'contactPoint' => [
202
            ContactPoint::class,
203
        ],
204
        'deathDate' => [
205
            Date::class,
206
        ],
207
        'deathPlace' => [
208
            Place::class,
209
        ],
210
        'duns' => [
211
            'string',
212
        ],
213
        'email' => [
214
            'string',
215
        ],
216
        'familyName' => [
217
            'string',
218
        ],
219
        'faxNumber' => [
220
            'string',
221
        ],
222
        'follows' => [
223
            Person::class,
224
        ],
225
        'funder' => [
226
            Organization::class,
227
            Person::class,
228
        ],
229
        'gender' => [
230
            'string',
231
            GenderType::class,
232
        ],
233
        'givenName' => [
234
            'string',
235
        ],
236
        'globalLocationNumber' => [
237
            'string',
238
        ],
239
        'hasOccupation' => [
240
            Occupation::class,
241
        ],
242
        'hasOfferCatalog' => [
243
            OfferCatalog::class,
244
        ],
245
        'hasPOS' => [
246
            Place::class,
247
        ],
248
        'height' => [
249
            Distance::class,
250
            QuantitativeValue::class,
251
        ],
252
        'homeLocation' => [
253
            ContactPoint::class,
254
            Place::class,
255
        ],
256
        'honorificPrefix' => [
257
            'string',
258
        ],
259
        'honorificSuffix' => [
260
            'string',
261
        ],
262
        'isicV4' => [
263
            'string',
264
        ],
265
        'jobTitle' => [
266
            'string',
267
        ],
268
        'knows' => [
269
            Person::class,
270
        ],
271
        'knowsAbout' => [
272
            'string',
273
            Thing::class,
274
        ],
275
        'knowsLanguage' => [
276
            'string',
277
            Language::class,
278
        ],
279
        'makesOffer' => [
280
            Offer::class,
281
        ],
282
        'memberOf' => [
283
            Organization::class,
284
            ProgramMembership::class,
285
        ],
286
        'naics' => [
287
            'string',
288
        ],
289
        'nationality' => [
290
            Country::class,
291
        ],
292
        'netWorth' => [
293
            MonetaryAmount::class,
294
            PriceSpecification::class,
295
        ],
296
        'owns' => [
297
            OwnershipInfo::class,
298
            Product::class,
299
        ],
300
        'parent' => [
301
            Person::class,
302
        ],
303
        'performerIn' => [
304
            Event::class,
305
        ],
306
        'publishingPrinciples' => [
307
            'string',
308
            CreativeWork::class,
309
        ],
310
        'relatedTo' => [
311
            Person::class,
312
        ],
313
        'seeks' => [
314
            Demand::class,
315
        ],
316
        'sibling' => [
317
            Person::class,
318
        ],
319
        'sponsor' => [
320
            Organization::class,
321
            Person::class,
322
        ],
323
        'spouse' => [
324
            Person::class,
325
        ],
326
        'taxID' => [
327
            'string',
328
        ],
329
        'telephone' => [
330
            'string',
331
        ],
332
        'weight' => [
333
            QuantitativeValue::class,
334
        ],
335
        'workLocation' => [
336
            ContactPoint::class,
337
            Place::class,
338
        ],
339
        'worksFor' => [
340
            Organization::class,
341
        ],
342
        'vatID' => [
343
            'string',
344
        ],
345
    ];
346
347
    /**
348
    * @return array<int, string>
349
    */
350 54
    public function GetAdditionalName() : array
351
    {
352
        /**
353
        * @var array<int, string>
354
        */
355 54
        $out = $this->ExpectRetrievedValueIsArray('additionalName');
356
357 54
        return $out;
358
    }
359
360
    /**
361
    * @param array<int, string> $value
362
    */
363 1
    public function SetAdditionalName(array $value) : void
364
    {
365 1
        $this->NudgePropertyValue('additionalName', $value, self::BOOL_DEFAULT_AUTOTRIMSTRINGS);
366 1
    }
367
368
    /**
369
    * @return array<int, Organization>
370
    */
371 54
    public function GetAffiliation() : array
372
    {
373
        /**
374
        * @var array<int, Organization>
375
        */
376 54
        $out = $this->ExpectRetrievedValueIsArray('affiliation');
377
378 54
        return $out;
379
    }
380
381
    /**
382
    * @param array<int, Organization> $value
383
    */
384 1
    public function SetAffiliation(array $value) : void
385
    {
386 1
        $this->NudgePropertyValue('affiliation', $value);
387 1
    }
388
389
    /**
390
    * @return array<int, Organization>
391
    */
392 54
    public function GetAlumniOf() : array
393
    {
394
        /**
395
        * @var array<int, Organization>
396
        */
397 54
        $out = $this->ExpectRetrievedValueIsArray('alumniOf');
398
399 54
        return $out;
400
    }
401
402
    /**
403
    * @param array<int, Organization> $value
404
    */
405 1
    public function SetAlumniOf(array $value) : void
406
    {
407 1
        $this->NudgePropertyValue('alumniOf', $value);
408 1
    }
409
410
    /**
411
    * @return array<int, Date>
412
    */
413 54
    public function GetBirthDate() : array
414
    {
415
        /**
416
        * @var array<int, Date>
417
        */
418 54
        $out = $this->ExpectRetrievedValueIsArray('birthDate');
419
420 54
        return $out;
421
    }
422
423
    /**
424
    * @param array<int, Date> $value
425
    */
426 1
    public function SetBirthDate(array $value) : void
427
    {
428 1
        $this->NudgePropertyValue('birthDate', $value);
429 1
    }
430
431
    /**
432
    * @return array<int, Place>
433
    */
434 54
    public function GetBirthPlace() : array
435
    {
436
        /**
437
        * @var array<int, Place>
438
        */
439 54
        $out = $this->ExpectRetrievedValueIsArray('birthPlace');
440
441 54
        return $out;
442
    }
443
444
    /**
445
    * @param array<int, Place> $value
446
    */
447 1
    public function SetBirthPlace(array $value) : void
448
    {
449 1
        $this->NudgePropertyValue('birthPlace', $value);
450 1
    }
451
452
    /**
453
    * @return array<int, Person>
454
    */
455 54
    public function GetChildren() : array
456
    {
457
        /**
458
        * @var array<int, Person>
459
        */
460 54
        $out = $this->ExpectRetrievedValueIsArray('children');
461
462 54
        return $out;
463
    }
464
465
    /**
466
    * @param array<int, Person> $value
467
    */
468 1
    public function SetChildren(array $value) : void
469
    {
470 1
        $this->NudgePropertyValue('children', $value);
471 1
    }
472
473
    /**
474
    * @return array<int, string|Person>
475
    */
476 54
    public function GetColleague() : array
477
    {
478
        /**
479
        * @var array<int, string|Person>
480
        */
481 54
        $out = $this->ExpectRetrievedValueIsArray('colleague');
482
483 54
        return $out;
484
    }
485
486
    /**
487
    * @param array<int, string|Person> $value
488
    */
489 1
    public function SetColleague(array $value) : void
490
    {
491 1
        $this->NudgePropertyValue('colleague', $value, self::BOOL_DEFAULT_AUTOTRIMSTRINGS);
492 1
    }
493
494
    /**
495
    * @return array<int, Date>
496
    */
497 54
    public function GetDeathDate() : array
498
    {
499
        /**
500
        * @var array<int, Date>
501
        */
502 54
        $out = $this->ExpectRetrievedValueIsArray('deathDate');
503
504 54
        return $out;
505
    }
506
507
    /**
508
    * @param array<int, Date> $value
509
    */
510 1
    public function SetDeathDate(array $value) : void
511
    {
512 1
        $this->NudgePropertyValue('deathDate', $value);
513 1
    }
514
515
    /**
516
    * @return array<int, Place>
517
    */
518 54
    public function GetDeathPlace() : array
519
    {
520
        /**
521
        * @var array<int, Place>
522
        */
523 54
        $out = $this->ExpectRetrievedValueIsArray('deathPlace');
524
525 54
        return $out;
526
    }
527
528
    /**
529
    * @param array<int, Place> $value
530
    */
531 1
    public function SetDeathPlace(array $value) : void
532
    {
533 1
        $this->NudgePropertyValue('deathPlace', $value);
534 1
    }
535
536
    /**
537
    * @return array<int, string>
538
    */
539 54
    public function GetFamilyName() : array
540
    {
541
        /**
542
        * @var array<int, string>
543
        */
544 54
        $out = $this->ExpectRetrievedValueIsArray('familyName');
545
546 54
        return $out;
547
    }
548
549
    /**
550
    * @param array<int, string> $value
551
    */
552 1
    public function SetFamilyName(array $value) : void
553
    {
554 1
        $this->NudgePropertyValue('familyName', $value, self::BOOL_DEFAULT_AUTOTRIMSTRINGS);
555 1
    }
556
557
    /**
558
    * @return array<int, Person>
559
    */
560 54
    public function GetFollows() : array
561
    {
562
        /**
563
        * @var array<int, Person>
564
        */
565 54
        $out = $this->ExpectRetrievedValueIsArray('follows');
566
567 54
        return $out;
568
    }
569
570
    /**
571
    * @param array<int, Person> $value
572
    */
573 1
    public function SetFollows(array $value) : void
574
    {
575 1
        $this->NudgePropertyValue('follows', $value);
576 1
    }
577
578
    /**
579
    * @return array<int, string|GenderType>
580
    */
581 54
    public function GetGender() : array
582
    {
583
        /**
584
        * @var array<int, string|GenderType>
585
        */
586 54
        $out = $this->ExpectRetrievedValueIsArray('gender');
587
588 54
        return $out;
589
    }
590
591
    /**
592
    * @param array<int, string|GenderType> $value
593
    */
594 1
    public function SetGender(array $value) : void
595
    {
596 1
        $this->NudgePropertyValue('gender', $value, self::BOOL_DEFAULT_AUTOTRIMSTRINGS);
597 1
    }
598
599
    /**
600
    * @return array<int, string>
601
    */
602 54
    public function GetGivenName() : array
603
    {
604
        /**
605
        * @var array<int, string>
606
        */
607 54
        $out = $this->ExpectRetrievedValueIsArray('givenName');
608
609 54
        return $out;
610
    }
611
612
    /**
613
    * @param array<int, string> $value
614
    */
615 1
    public function SetGivenName(array $value) : void
616
    {
617 1
        $this->NudgePropertyValue('givenName', $value, self::BOOL_DEFAULT_AUTOTRIMSTRINGS);
618 1
    }
619
620
    /**
621
    * @return array<int, Occupation>
622
    */
623 54
    public function GetHasOccupation() : array
624
    {
625
        /**
626
        * @var array<int, Occupation>
627
        */
628 54
        $out = $this->ExpectRetrievedValueIsArray('hasOccupation');
629
630 54
        return $out;
631
    }
632
633
    /**
634
    * @param array<int, Occupation> $value
635
    */
636 1
    public function SetHasOccupation(array $value) : void
637
    {
638 1
        $this->NudgePropertyValue('hasOccupation', $value);
639 1
    }
640
641
    /**
642
    * @return array<int, ContactPoint|Place>
643
    */
644 54
    public function GetHomeLocation() : array
645
    {
646
        /**
647
        * @var array<int, ContactPoint|Place>
648
        */
649 54
        $out = $this->ExpectRetrievedValueIsArray('homeLocation');
650
651 54
        return $out;
652
    }
653
654
    /**
655
    * @param array<int, ContactPoint|Place> $value
656
    */
657 1
    public function SetHomeLocation(array $value) : void
658
    {
659 1
        $this->NudgePropertyValue('homeLocation', $value);
660 1
    }
661
662
    /**
663
    * @return array<int, string>
664
    */
665 54
    public function GetHonorificPrefix() : array
666
    {
667
        /**
668
        * @var array<int, string>
669
        */
670 54
        $out = $this->ExpectRetrievedValueIsArray('honorificPrefix');
671
672 54
        return $out;
673
    }
674
675
    /**
676
    * @param array<int, string> $value
677
    */
678 1
    public function SetHonorificPrefix(array $value) : void
679
    {
680 1
        $this->NudgePropertyValue('honorificPrefix', $value, self::BOOL_DEFAULT_AUTOTRIMSTRINGS);
681 1
    }
682
683
    /**
684
    * @return array<int, string>
685
    */
686 54
    public function GetHonorificSuffix() : array
687
    {
688
        /**
689
        * @var array<int, string>
690
        */
691 54
        $out = $this->ExpectRetrievedValueIsArray('honorificSuffix');
692
693 54
        return $out;
694
    }
695
696
    /**
697
    * @param array<int, string> $value
698
    */
699 1
    public function SetHonorificSuffix(array $value) : void
700
    {
701 1
        $this->NudgePropertyValue('honorificSuffix', $value, self::BOOL_DEFAULT_AUTOTRIMSTRINGS);
702 1
    }
703
704
    /**
705
    * @return array<int, string>
706
    */
707 54
    public function GetJobTitle() : array
708
    {
709
        /**
710
        * @var array<int, string>
711
        */
712 54
        $out = $this->ExpectRetrievedValueIsArray('jobTitle');
713
714 54
        return $out;
715
    }
716
717
    /**
718
    * @param array<int, string> $value
719
    */
720 1
    public function SetJobTitle(array $value) : void
721
    {
722 1
        $this->NudgePropertyValue('jobTitle', $value, self::BOOL_DEFAULT_AUTOTRIMSTRINGS);
723 1
    }
724
725
    /**
726
    * @return array<int, Person>
727
    */
728 54
    public function GetKnows() : array
729
    {
730
        /**
731
        * @var array<int, Person>
732
        */
733 54
        $out = $this->ExpectRetrievedValueIsArray('knows');
734
735 54
        return $out;
736
    }
737
738
    /**
739
    * @param array<int, Person> $value
740
    */
741 1
    public function SetKnows(array $value) : void
742
    {
743 1
        $this->NudgePropertyValue('knows', $value);
744 1
    }
745
746
    /**
747
    * @return array<int, Country>
748
    */
749 54
    public function GetNationality() : array
750
    {
751
        /**
752
        * @var array<int, Country>
753
        */
754 54
        $out = $this->ExpectRetrievedValueIsArray('nationality');
755
756 54
        return $out;
757
    }
758
759
    /**
760
    * @param array<int, Country> $value
761
    */
762 1
    public function SetNationality(array $value) : void
763
    {
764 1
        $this->NudgePropertyValue('nationality', $value);
765 1
    }
766
767
    /**
768
    * @return array<int, MonetaryAmount|PriceSpecification>
769
    */
770 54
    public function GetNetWorth() : array
771
    {
772
        /**
773
        * @var array<int, MonetaryAmount|PriceSpecification>
774
        */
775 54
        $out = $this->ExpectRetrievedValueIsArray('netWorth');
776
777 54
        return $out;
778
    }
779
780
    /**
781
    * @param array<int, MonetaryAmount|PriceSpecification> $value
782
    */
783 1
    public function SetNetWorth(array $value) : void
784
    {
785 1
        $this->NudgePropertyValue('netWorth', $value);
786 1
    }
787
788
    /**
789
    * @return array<int, Person>
790
    */
791 54
    public function GetParent() : array
792
    {
793
        /**
794
        * @var array<int, Person>
795
        */
796 54
        $out = $this->ExpectRetrievedValueIsArray('parent');
797
798 54
        return $out;
799
    }
800
801
    /**
802
    * @param array<int, Person> $value
803
    */
804 1
    public function SetParent(array $value) : void
805
    {
806 1
        $this->NudgePropertyValue('parent', $value);
807 1
    }
808
809
    /**
810
    * @return array<int, Event>
811
    */
812 54
    public function GetPerformerIn() : array
813
    {
814
        /**
815
        * @var array<int, Event>
816
        */
817 54
        $out = $this->ExpectRetrievedValueIsArray('performerIn');
818
819 54
        return $out;
820
    }
821
822
    /**
823
    * @param array<int, Event> $value
824
    */
825 1
    public function SetPerformerIn(array $value) : void
826
    {
827 1
        $this->NudgePropertyValue('performerIn', $value);
828 1
    }
829
830
    /**
831
    * @return array<int, Person>
832
    */
833 54
    public function GetRelatedTo() : array
834
    {
835
        /**
836
        * @var array<int, Person>
837
        */
838 54
        $out = $this->ExpectRetrievedValueIsArray('relatedTo');
839
840 54
        return $out;
841
    }
842
843
    /**
844
    * @param array<int, Person> $value
845
    */
846 1
    public function SetRelatedTo(array $value) : void
847
    {
848 1
        $this->NudgePropertyValue('relatedTo', $value);
849 1
    }
850
851
    /**
852
    * @return array<int, Person>
853
    */
854 54
    public function GetSibling() : array
855
    {
856
        /**
857
        * @var array<int, Person>
858
        */
859 54
        $out = $this->ExpectRetrievedValueIsArray('sibling');
860
861 54
        return $out;
862
    }
863
864
    /**
865
    * @param array<int, Person> $value
866
    */
867 1
    public function SetSibling(array $value) : void
868
    {
869 1
        $this->NudgePropertyValue('sibling', $value);
870 1
    }
871
872
    /**
873
    * @return array<int, Person>
874
    */
875 54
    public function GetSpouse() : array
876
    {
877
        /**
878
        * @var array<int, Person>
879
        */
880 54
        $out = $this->ExpectRetrievedValueIsArray('spouse');
881
882 54
        return $out;
883
    }
884
885
    /**
886
    * @param array<int, Person> $value
887
    */
888 1
    public function SetSpouse(array $value) : void
889
    {
890 1
        $this->NudgePropertyValue('spouse', $value);
891 1
    }
892
893
    /**
894
    * @return array<int, ContactPoint|Place>
895
    */
896 54
    public function GetWorkLocation() : array
897
    {
898
        /**
899
        * @var array<int, ContactPoint|Place>
900
        */
901 54
        $out = $this->ExpectRetrievedValueIsArray('workLocation');
902
903 54
        return $out;
904
    }
905
906
    /**
907
    * @param array<int, ContactPoint|Place> $value
908
    */
909 1
    public function SetWorkLocation(array $value) : void
910
    {
911 1
        $this->NudgePropertyValue('workLocation', $value);
912 1
    }
913
914
    /**
915
    * @return array<int, Organization>
916
    */
917 54
    public function GetWorksFor() : array
918
    {
919
        /**
920
        * @var array<int, Organization>
921
        */
922 54
        $out = $this->ExpectRetrievedValueIsArray('worksFor');
923
924 54
        return $out;
925
    }
926
927
    /**
928
    * @param array<int, Organization> $value
929
    */
930 1
    public function SetWorksFor(array $value) : void
931
    {
932 1
        $this->NudgePropertyValue('worksFor', $value);
933 1
    }
934
}
935