| Total Complexity | 4 |
| Total Lines | 63 |
| Duplicated Lines | 0 % |
| Coverage | 74.07% |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | trait HasHasPart |
||
| 14 | { |
||
| 15 | use DaftObjectTrait; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @return array<int, CreativeWork|Trip> |
||
| 19 | */ |
||
| 20 | 71 | public function GetHasPart() : array |
|
| 21 | { |
||
| 22 | /** |
||
| 23 | * @var array<int, CreativeWork|Trip> |
||
| 24 | */ |
||
| 25 | 71 | $out = TypeUtilities::ExpectRetrievedValueIsArray( |
|
| 26 | 71 | 'hasPart', |
|
| 27 | 71 | $this->RetrievePropertyValueFromData('hasPart'), |
|
|
|
|||
| 28 | 71 | static::class |
|
| 29 | ); |
||
| 30 | |||
| 31 | 71 | return $out; |
|
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @param array<int, CreativeWork|Trip> $value |
||
| 36 | */ |
||
| 37 | 28 | public function SetHasPart(array $value) : void |
|
| 38 | { |
||
| 39 | 28 | $this->NudgePropertyWithUniqueValuesOfThings( |
|
| 40 | 28 | 'hasPart', |
|
| 41 | 28 | __METHOD__, |
|
| 42 | 28 | $value, |
|
| 43 | 28 | CreativeWork::class, |
|
| 44 | 28 | Trip::class |
|
| 45 | ); |
||
| 46 | 28 | } |
|
| 47 | |||
| 48 | /** |
||
| 49 | * @return array<int, CreativeWork|Trip> |
||
| 50 | */ |
||
| 51 | 43 | public function GetIsPartOf() : array |
|
| 52 | { |
||
| 53 | /** |
||
| 54 | * @var array<int, CreativeWork|Trip> |
||
| 55 | */ |
||
| 56 | 43 | $out = TypeUtilities::ExpectRetrievedValueIsArray( |
|
| 57 | 43 | 'isPartOf', |
|
| 58 | 43 | $this->RetrievePropertyValueFromData('isPartOf'), |
|
| 59 | 43 | static::class |
|
| 60 | ); |
||
| 61 | |||
| 62 | 43 | return $out; |
|
| 63 | } |
||
| 64 | |||
| 65 | /** |
||
| 66 | * @param array<int, CreativeWork|Trip> $value |
||
| 67 | */ |
||
| 68 | public function SetIsPartOf(array $value) : void |
||
| 76 | ); |
||
| 77 | } |
||
| 78 | } |
||
| 79 |