commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
ChangeModel.php
1 <?php
2 
3 declare(strict_types=1);
10 
15 use stdClass;
16 
20 final class ChangeModel extends JsonObjectModel implements Change
21 {
22 
23  public const DISCRIMINATOR_VALUE = '';
28  protected $type;
29 
34  protected $change;
35 
40  private static $discriminatorClasses = [
41  'AddAddressChange' => AddAddressChangeModel::class,
42  'AddAssetChange' => AddAssetChangeModel::class,
43  'AddAssociateChange' => AddAssociateChangeModel::class,
44  'AddAttributeDefinitionChange' => AddAttributeDefinitionChangeModel::class,
45  'AddBillingAddressIdChange' => AddBillingAddressIdChangeModel::class,
46  'AddChannelRolesChange' => AddChannelRolesChangeModel::class,
47  'AddCustomLineItemChange' => AddCustomLineItemChangeModel::class,
48  'AddDeliveryChange' => AddDeliveryChangeModel::class,
49  'AddDiscountCodeChange' => AddDiscountCodeChangeModel::class,
50  'AddEnumValueChange' => AddEnumValueChangeModel::class,
51  'AddExternalImageChange' => AddExternalImageChangeModel::class,
52  'AddFieldDefinitionChange' => AddFieldDefinitionChangeModel::class,
53  'AddInheritedAssociateChange' => AddInheritedAssociateChangeModel::class,
54  'AddInterfaceInteractionChange' => AddInterfaceInteractionChangeModel::class,
55  'AddItemShippingAddressesChange' => AddItemShippingAddressesChangeModel::class,
56  'AddLocalizedEnumValueChange' => AddLocalizedEnumValueChangeModel::class,
57  'AddLocationChange' => AddLocationChangeModel::class,
58  'AddOrderLineItemChange' => AddOrderLineItemChangeModel::class,
59  'AddParcelToDeliveryChange' => AddParcelToDeliveryChangeModel::class,
60  'AddPaymentChange' => AddPaymentChangeModel::class,
61  'AddPlainEnumValueChange' => AddPlainEnumValueChangeModel::class,
62  'AddPriceChange' => AddPriceChangeModel::class,
63  'AddProductChange' => AddProductChangeModel::class,
64  'AddProductSelectionChange' => AddProductSelectionChangeModel::class,
65  'AddPropertyChange' => AddPropertyChangeModel::class,
66  'AddReturnInfoChange' => AddReturnInfoChangeModel::class,
67  'AddShippingAddressIdChange' => AddShippingAddressIdChangeModel::class,
68  'AddShoppingListLineItemChange' => AddShoppingListLineItemChangeModel::class,
69  'AddStateRolesChange' => AddStateRolesChangeModel::class,
70  'AddTaxRateChange' => AddTaxRateChangeModel::class,
71  'AddTextLineItemChange' => AddTextLineItemChangeModel::class,
72  'AddToCategoryChange' => AddToCategoryChangeModel::class,
73  'AddTransactionChange' => AddTransactionChangeModel::class,
74  'AddVariantChange' => AddVariantChangeModel::class,
75  'ChangeAddressChange' => ChangeAddressChangeModel::class,
76  'ChangeAmountAuthorizedChange' => ChangeAmountAuthorizedChangeModel::class,
77  'ChangeAmountPlannedChange' => ChangeAmountPlannedChangeModel::class,
78  'ChangeAssetNameChange' => ChangeAssetNameChangeModel::class,
79  'ChangeAssetOrderChange' => ChangeAssetOrderChangeModel::class,
80  'ChangeAssociateChange' => ChangeAssociateChangeModel::class,
81  'ChangeAssociateModeChange' => ChangeAssociateModeChangeModel::class,
82  'ChangeAttributeConstraintChange' => ChangeAttributeConstraintChangeModel::class,
83  'ChangeAttributeOrderByNameChange' => ChangeAttributeOrderByNameChangeModel::class,
84  'ChangeBuyerAssignableChange' => ChangeBuyerAssignableChangeModel::class,
85  'ChangeCartDiscountsChange' => ChangeCartDiscountsChangeModel::class,
86  'ChangeCartPredicateChange' => ChangeCartPredicateChangeModel::class,
87  'ChangeCustomLineItemQuantityChange' => ChangeCustomLineItemQuantityChangeModel::class,
88  'ChangeDescriptionChange' => ChangeDescriptionChangeModel::class,
89  'ChangeEmailChange' => ChangeEmailChangeModel::class,
90  'ChangeEnumValueLabelChange' => ChangeEnumValueLabelChangeModel::class,
91  'ChangeEnumValueOrderChange' => ChangeEnumValueOrderChangeModel::class,
92  'ChangeFieldDefinitionOrderChange' => ChangeFieldDefinitionOrderChangeModel::class,
93  'ChangeGroupsChange' => ChangeGroupsChangeModel::class,
94  'ChangeInheritedAssociateChange' => ChangeInheritedAssociateChangeModel::class,
95  'ChangeInitialChange' => ChangeInitialChangeModel::class,
96  'ChangeInputHintChange' => ChangeInputHintChangeModel::class,
97  'ChangeIsActiveChange' => ChangeIsActiveChangeModel::class,
98  'ChangeIsSearchableChange' => ChangeIsSearchableChangeModel::class,
99  'ChangeKeyChange' => ChangeKeyChangeModel::class,
100  'ChangeLabelChange' => ChangeLabelChangeModel::class,
101  'ChangeLineItemQuantityChange' => ChangeLineItemQuantityChangeModel::class,
102  'ChangeLocalizedDescriptionChange' => ChangeLocalizedDescriptionChangeModel::class,
103  'ChangeLocalizedEnumValueLabelChange' => ChangeLocalizedEnumValueLabelChangeModel::class,
104  'ChangeLocalizedEnumValueOrderChange' => ChangeLocalizedEnumValueOrderChangeModel::class,
105  'ChangeLocalizedNameChange' => ChangeLocalizedNameChangeModel::class,
106  'ChangeMasterVariantChange' => ChangeMasterVariantChangeModel::class,
107  'ChangeNameChange' => ChangeNameChangeModel::class,
108  'ChangeOrderHintChange' => ChangeOrderHintChangeModel::class,
109  'ChangeOrderStateChange' => ChangeOrderStateChangeModel::class,
110  'ChangeParentChange' => ChangeParentChangeModel::class,
111  'ChangeParentUnitChange' => ChangeParentUnitChangeModel::class,
112  'ChangePaymentStateChange' => ChangePaymentStateChangeModel::class,
113  'ChangePlainEnumValueLabelChange' => ChangePlainEnumValueLabelChangeModel::class,
114  'ChangePlainEnumValueOrderChange' => ChangePlainEnumValueOrderChangeModel::class,
115  'ChangePredicateChange' => ChangePredicateChangeModel::class,
116  'ChangePriceChange' => ChangePriceChangeModel::class,
117  'ChangeProductSelectionActiveChange' => ChangeProductSelectionActiveChangeModel::class,
118  'ChangeQuantityChange' => ChangeQuantityChangeModel::class,
119  'ChangeQuoteRequestStateChange' => ChangeQuoteRequestStateChangeModel::class,
120  'ChangeQuoteStateChange' => ChangeQuoteStateChangeModel::class,
121  'ChangeRequiresDiscountCodeChange' => ChangeRequiresDiscountCodeChangeModel::class,
122  'ChangeReviewRatingStatisticsChange' => ChangeReviewRatingStatisticsChangeModel::class,
123  'ChangeShipmentStateChange' => ChangeShipmentStateChangeModel::class,
124  'ChangeShoppingListLineItemQuantityChange' => ChangeShoppingListLineItemQuantityChangeModel::class,
125  'ChangeShoppingListLineItemsOrderChange' => ChangeShoppingListLineItemsOrderChangeModel::class,
126  'ChangeSlugChange' => ChangeSlugChangeModel::class,
127  'ChangeSortOrderChange' => ChangeSortOrderChangeModel::class,
128  'ChangeStackingModeChange' => ChangeStackingModeChangeModel::class,
129  'ChangeStagedQuoteStateChange' => ChangeStagedQuoteStateChangeModel::class,
130  'ChangeStateTypeChange' => ChangeStateTypeChangeModel::class,
131  'ChangeStatusChange' => ChangeStatusChangeModel::class,
132  'ChangeTargetChange' => ChangeTargetChangeModel::class,
133  'ChangeTaxCalculationModeChange' => ChangeTaxCalculationModeChangeModel::class,
134  'ChangeTaxModeChange' => ChangeTaxModeChangeModel::class,
135  'ChangeTaxRoundingModeChange' => ChangeTaxRoundingModeChangeModel::class,
136  'ChangeTextLineItemNameChange' => ChangeTextLineItemNameChangeModel::class,
137  'ChangeTextLineItemQuantityChange' => ChangeTextLineItemQuantityChangeModel::class,
138  'ChangeTextLineItemsOrderChange' => ChangeTextLineItemsOrderChangeModel::class,
139  'ChangeTransactionInteractionIdChange' => ChangeTransactionInteractionIdChangeModel::class,
140  'ChangeTransactionStateChange' => ChangeTransactionStateChangeModel::class,
141  'ChangeTransactionTimestampChange' => ChangeTransactionTimestampChangeModel::class,
142  'ChangeValueChange' => ChangeValueChangeModel::class,
143  'MoveImageToPositionChange' => MoveImageToPositionChangeModel::class,
144  'PublishChange' => PublishChangeModel::class,
145  'RemoveAddressChange' => RemoveAddressChangeModel::class,
146  'RemoveAssetChange' => RemoveAssetChangeModel::class,
147  'RemoveAssociateChange' => RemoveAssociateChangeModel::class,
148  'RemoveAttributeDefinitionChange' => RemoveAttributeDefinitionChangeModel::class,
149  'RemoveBillingAddressIdChange' => RemoveBillingAddressIdChangeModel::class,
150  'RemoveChannelRolesChange' => RemoveChannelRolesChangeModel::class,
151  'RemoveCustomLineItemChange' => RemoveCustomLineItemChangeModel::class,
152  'RemoveDeliveryItemsChange' => RemoveDeliveryItemsChangeModel::class,
153  'RemoveDiscountCodeChange' => RemoveDiscountCodeChangeModel::class,
154  'RemoveEnumValuesChange' => RemoveEnumValuesChangeModel::class,
155  'RemoveFieldDefinitionChange' => RemoveFieldDefinitionChangeModel::class,
156  'RemoveFromCategoryChange' => RemoveFromCategoryChangeModel::class,
157  'RemoveImageChange' => RemoveImageChangeModel::class,
158  'RemoveInheritedAssociateChange' => RemoveInheritedAssociateChangeModel::class,
159  'RemoveItemShippingAddressesChange' => RemoveItemShippingAddressesChangeModel::class,
160  'RemoveLocalizedEnumValuesChange' => RemoveLocalizedEnumValuesChangeModel::class,
161  'RemoveLocationChange' => RemoveLocationChangeModel::class,
162  'RemoveOrderLineItemChange' => RemoveOrderLineItemChangeModel::class,
163  'RemoveParcelFromDeliveryChange' => RemoveParcelFromDeliveryChangeModel::class,
164  'RemovePaymentChange' => RemovePaymentChangeModel::class,
165  'RemovePriceChange' => RemovePriceChangeModel::class,
166  'RemoveProductChange' => RemoveProductChangeModel::class,
167  'RemoveProductSelectionChange' => RemoveProductSelectionChangeModel::class,
168  'RemovePropertyChange' => RemovePropertyChangeModel::class,
169  'RemoveShippingAddressIdChange' => RemoveShippingAddressIdChangeModel::class,
170  'RemoveShoppingListLineItemChange' => RemoveShoppingListLineItemChangeModel::class,
171  'RemoveStateRolesChange' => RemoveStateRolesChangeModel::class,
172  'RemoveTaxRateChange' => RemoveTaxRateChangeModel::class,
173  'RemoveTextLineItemChange' => RemoveTextLineItemChangeModel::class,
174  'RemoveVariantChange' => RemoveVariantChangeModel::class,
175  'RequestQuoteRenegotiationChange' => RequestQuoteRenegotiationChangeModel::class,
176  'SetAddressChange' => SetAddressChangeModel::class,
177  'SetAddressCustomFieldChange' => SetAddressCustomFieldChangeModel::class,
178  'SetAddressCustomTypeChange' => SetAddressCustomTypeChangeModel::class,
179  'SetAnonymousIdChange' => SetAnonymousIdChangeModel::class,
180  'SetApplicationVersionChange' => SetApplicationVersionChangeModel::class,
181  'SetAssetCustomFieldChange' => SetAssetCustomFieldChangeModel::class,
182  'SetAssetCustomTypeChange' => SetAssetCustomTypeChangeModel::class,
183  'SetAssetDescriptionChange' => SetAssetDescriptionChangeModel::class,
184  'SetAssetKeyChange' => SetAssetKeyChangeModel::class,
185  'SetAssetSourcesChange' => SetAssetSourcesChangeModel::class,
186  'SetAssetTagsChange' => SetAssetTagsChangeModel::class,
187  'SetAttributeChange' => SetAttributeChangeModel::class,
188  'SetAuthenticationModeChange' => SetAuthenticationModeChangeModel::class,
189  'SetAuthorNameChange' => SetAuthorNameChangeModel::class,
190  'SetBillingAddressChange' => SetBillingAddressChangeModel::class,
191  'SetCartPredicateChange' => SetCartPredicateChangeModel::class,
192  'SetCategoryOrderHintChange' => SetCategoryOrderHintChangeModel::class,
193  'SetChannelRolesChange' => SetChannelRolesChangeModel::class,
194  'SetCompanyNameChange' => SetCompanyNameChangeModel::class,
195  'SetContactEmailChange' => SetContactEmailChangeModel::class,
196  'SetCountriesChange' => SetCountriesChangeModel::class,
197  'SetCountryChange' => SetCountryChangeModel::class,
198  'SetCustomFieldChange' => SetCustomFieldChangeModel::class,
199  'SetCustomLineItemCustomFieldChange' => SetCustomLineItemCustomFieldChangeModel::class,
200  'SetCustomLineItemCustomTypeChange' => SetCustomLineItemCustomTypeChangeModel::class,
201  'SetCustomLineItemMoneyChange' => SetCustomLineItemMoneyChangeModel::class,
202  'SetCustomLineItemShippingDetailsChange' => SetCustomLineItemShippingDetailsChangeModel::class,
203  'SetCustomLineItemTaxAmountChange' => SetCustomLineItemTaxAmountChangeModel::class,
204  'SetCustomLineItemTaxCategoryChange' => SetCustomLineItemTaxCategoryChangeModel::class,
205  'SetCustomLineItemTaxRateChange' => SetCustomLineItemTaxRateChangeModel::class,
206  'SetCustomLineItemTaxedPriceChange' => SetCustomLineItemTaxedPriceChangeModel::class,
207  'SetCustomLineItemTotalPriceChange' => SetCustomLineItemTotalPriceChangeModel::class,
208  'SetCustomShippingMethodChange' => SetCustomShippingMethodChangeModel::class,
209  'SetCustomTypeChange' => SetCustomTypeChangeModel::class,
210  'SetCustomerChange' => SetCustomerChangeModel::class,
211  'SetCustomerEmailChange' => SetCustomerEmailChangeModel::class,
212  'SetCustomerGroupChange' => SetCustomerGroupChangeModel::class,
213  'SetCustomerIdChange' => SetCustomerIdChangeModel::class,
214  'SetCustomerNumberChange' => SetCustomerNumberChangeModel::class,
215  'SetDateOfBirthChange' => SetDateOfBirthChangeModel::class,
216  'SetDefaultBillingAddressChange' => SetDefaultBillingAddressChangeModel::class,
217  'SetDefaultShippingAddressChange' => SetDefaultShippingAddressChangeModel::class,
218  'SetDeleteDaysAfterLastModificationChange' => SetDeleteDaysAfterLastModificationChangeModel::class,
219  'SetDeliveryAddressChange' => SetDeliveryAddressChangeModel::class,
220  'SetDeliveryItemsChange' => SetDeliveryItemsChangeModel::class,
221  'SetDescriptionChange' => SetDescriptionChangeModel::class,
222  'SetDiscountedPriceChange' => SetDiscountedPriceChangeModel::class,
223  'SetDistributionChannelsChange' => SetDistributionChannelsChangeModel::class,
224  'SetExpectedDeliveryChange' => SetExpectedDeliveryChangeModel::class,
225  'SetExternalIdChange' => SetExternalIdChangeModel::class,
226  'SetFirstNameChange' => SetFirstNameChangeModel::class,
227  'SetGeoLocationChange' => SetGeoLocationChangeModel::class,
228  'SetImageLabelChange' => SetImageLabelChangeModel::class,
229  'SetInputTipChange' => SetInputTipChangeModel::class,
230  'SetInterfaceIdChange' => SetInterfaceIdChangeModel::class,
231  'SetIsValidChange' => SetIsValidChangeModel::class,
232  'SetKeyChange' => SetKeyChangeModel::class,
233  'SetLanguagesChange' => SetLanguagesChangeModel::class,
234  'SetLastNameChange' => SetLastNameChangeModel::class,
235  'SetLineItemDeactivatedAtChange' => SetLineItemDeactivatedAtChangeModel::class,
236  'SetLineItemDiscountedPriceChange' => SetLineItemDiscountedPriceChangeModel::class,
237  'SetLineItemDiscountedPricePerQuantityChange' => SetLineItemDiscountedPricePerQuantityChangeModel::class,
238  'SetLineItemDistributionChannelChange' => SetLineItemDistributionChannelChangeModel::class,
239  'SetLineItemPriceChange' => SetLineItemPriceChangeModel::class,
240  'SetLineItemProductKeyChange' => SetLineItemProductKeyChangeModel::class,
241  'SetLineItemProductSlugChange' => SetLineItemProductSlugChangeModel::class,
242  'SetLineItemShippingDetailsChange' => SetLineItemShippingDetailsChangeModel::class,
243  'SetLineItemTaxAmountChange' => SetLineItemTaxAmountChangeModel::class,
244  'SetLineItemTaxRateChange' => SetLineItemTaxRateChangeModel::class,
245  'SetLineItemTaxedPriceChange' => SetLineItemTaxedPriceChangeModel::class,
246  'SetLineItemTotalPriceChange' => SetLineItemTotalPriceChangeModel::class,
247  'SetLocaleChange' => SetLocaleChangeModel::class,
248  'SetLocalizedDescriptionChange' => SetLocalizedDescriptionChangeModel::class,
249  'SetLocalizedNameChange' => SetLocalizedNameChangeModel::class,
250  'SetMaxApplicationsChange' => SetMaxApplicationsChangeModel::class,
251  'SetMaxApplicationsPerCustomerChange' => SetMaxApplicationsPerCustomerChangeModel::class,
252  'SetMetaDescriptionChange' => SetMetaDescriptionChangeModel::class,
253  'SetMetaKeywordsChange' => SetMetaKeywordsChangeModel::class,
254  'SetMetaTitleChange' => SetMetaTitleChangeModel::class,
255  'SetMethodInfoInterfaceChange' => SetMethodInfoInterfaceChangeModel::class,
256  'SetMethodInfoMethodChange' => SetMethodInfoMethodChangeModel::class,
257  'SetMethodInfoNameChange' => SetMethodInfoNameChangeModel::class,
258  'SetMiddleNameChange' => SetMiddleNameChangeModel::class,
259  'SetNameChange' => SetNameChangeModel::class,
260  'SetOrderLineItemCustomFieldChange' => SetOrderLineItemCustomFieldChangeModel::class,
261  'SetOrderLineItemCustomTypeChange' => SetOrderLineItemCustomTypeChangeModel::class,
262  'SetOrderNumberChange' => SetOrderNumberChangeModel::class,
263  'SetOrderTaxedPriceChange' => SetOrderTaxedPriceChangeModel::class,
264  'SetOrderTotalPriceChange' => SetOrderTotalPriceChangeModel::class,
265  'SetOrderTotalTaxChange' => SetOrderTotalTaxChangeModel::class,
266  'SetParcelItemsChange' => SetParcelItemsChangeModel::class,
267  'SetParcelMeasurementsChange' => SetParcelMeasurementsChangeModel::class,
268  'SetParcelTrackingDataChange' => SetParcelTrackingDataChangeModel::class,
269  'SetPermissionsChange' => SetPermissionsChangeModel::class,
270  'SetPricesChange' => SetPricesChangeModel::class,
271  'SetProductCountChange' => SetProductCountChangeModel::class,
272  'SetProductPriceCustomFieldChange' => SetProductPriceCustomFieldChangeModel::class,
273  'SetProductPriceCustomTypeChange' => SetProductPriceCustomTypeChangeModel::class,
274  'SetProductSelectionsChange' => SetProductSelectionsChangeModel::class,
275  'SetProductVariantKeyChange' => SetProductVariantKeyChangeModel::class,
276  'SetPropertyChange' => SetPropertyChangeModel::class,
277  'SetPurchaseOrderNumberChange' => SetPurchaseOrderNumberChangeModel::class,
278  'SetRatingChange' => SetRatingChangeModel::class,
279  'SetReservationsChange' => SetReservationsChangeModel::class,
280  'SetRestockableInDaysChange' => SetRestockableInDaysChangeModel::class,
281  'SetReturnPaymentStateChange' => SetReturnPaymentStateChangeModel::class,
282  'SetReturnShipmentStateChange' => SetReturnShipmentStateChangeModel::class,
283  'SetSalutationChange' => SetSalutationChangeModel::class,
284  'SetSearchKeywordsChange' => SetSearchKeywordsChangeModel::class,
285  'SetSellerCommentChange' => SetSellerCommentChangeModel::class,
286  'SetShippingAddressChange' => SetShippingAddressChangeModel::class,
287  'SetShippingInfoPriceChange' => SetShippingInfoPriceChangeModel::class,
288  'SetShippingInfoTaxedPriceChange' => SetShippingInfoTaxedPriceChangeModel::class,
289  'SetShippingMethodChange' => SetShippingMethodChangeModel::class,
290  'SetShippingMethodTaxAmountChange' => SetShippingMethodTaxAmountChangeModel::class,
291  'SetShippingMethodTaxRateChange' => SetShippingMethodTaxRateChangeModel::class,
292  'SetShippingRateChange' => SetShippingRateChangeModel::class,
293  'SetShippingRateInputChange' => SetShippingRateInputChangeModel::class,
294  'SetShoppingListLineItemCustomFieldChange' => SetShoppingListLineItemCustomFieldChangeModel::class,
295  'SetShoppingListLineItemCustomTypeChange' => SetShoppingListLineItemCustomTypeChangeModel::class,
296  'SetSkuChange' => SetSkuChangeModel::class,
297  'SetSlugChange' => SetSlugChangeModel::class,
298  'SetStateRolesChange' => SetStateRolesChangeModel::class,
299  'SetStatusInterfaceCodeChange' => SetStatusInterfaceCodeChangeModel::class,
300  'SetStatusInterfaceTextChange' => SetStatusInterfaceTextChangeModel::class,
301  'SetStoreChange' => SetStoreChangeModel::class,
302  'SetStoreModeChange' => SetStoreModeChangeModel::class,
303  'SetStoresChange' => SetStoresChangeModel::class,
304  'SetSupplyChannelChange' => SetSupplyChannelChangeModel::class,
305  'SetSupplyChannelsChange' => SetSupplyChannelsChangeModel::class,
306  'SetTargetChange' => SetTargetChangeModel::class,
307  'SetTaxCategoryChange' => SetTaxCategoryChangeModel::class,
308  'SetTextChange' => SetTextChangeModel::class,
309  'SetTextLineItemCustomFieldChange' => SetTextLineItemCustomFieldChangeModel::class,
310  'SetTextLineItemCustomTypeChange' => SetTextLineItemCustomTypeChangeModel::class,
311  'SetTextLineItemDescriptionChange' => SetTextLineItemDescriptionChangeModel::class,
312  'SetTitleChange' => SetTitleChangeModel::class,
313  'SetTransitionsChange' => SetTransitionsChangeModel::class,
314  'SetValidFromAndUntilChange' => SetValidFromAndUntilChangeModel::class,
315  'SetValidFromChange' => SetValidFromChangeModel::class,
316  'SetValidToChange' => SetValidToChangeModel::class,
317  'SetValidUntilChange' => SetValidUntilChangeModel::class,
318  'SetValueChange' => SetValueChangeModel::class,
319  'SetVariantAvailabilityChange' => SetVariantAvailabilityChangeModel::class,
320  'SetVariantSelectionChange' => SetVariantSelectionChangeModel::class,
321  'SetVatIdChange' => SetVatIdChangeModel::class,
322  'TransitionCustomLineItemStateChange' => TransitionCustomLineItemStateChangeModel::class,
323  'TransitionLineItemStateChange' => TransitionLineItemStateChangeModel::class,
324  'TransitionStateChange' => TransitionStateChangeModel::class,
325  'UnknownChange' => UnknownChangeModel::class,
326  'UnpublishChange' => UnpublishChangeModel::class,
327  'UpdateSyncInfoChange' => UpdateSyncInfoChangeModel::class,
328  'VerifyEmailChange' => VerifyEmailChangeModel::class,
329  ];
330 
334  public function __construct(
335  ?string $change = null,
336  ?string $type = null
337  ) {
338  $this->change = $change;
339  $this->type = $type;
340 
341  }
342 
349  public function getType()
350  {
351  if (is_null($this->type)) {
353  $data = $this->raw(self::FIELD_TYPE);
354  if (is_null($data)) {
355  return null;
356  }
357  $this->type = (string) $data;
358  }
359 
360  return $this->type;
361  }
362 
371  public function getChange()
372  {
373  if (is_null($this->change)) {
375  $data = $this->raw(self::FIELD_CHANGE);
376  if (is_null($data)) {
377  return null;
378  }
379  $this->change = (string) $data;
380  }
381 
382  return $this->change;
383  }
384 
385 
389  public function setChange(?string $change): void
390  {
391  $this->change = $change;
392  }
393 
394 
395 
400  public static function resolveDiscriminatorClass($value): string
401  {
402  $fieldName = Change::DISCRIMINATOR_FIELD;
403  if (is_object($value) && isset($value->$fieldName)) {
405  $discriminatorValue = $value->$fieldName;
406  if (isset(self::$discriminatorClasses[$discriminatorValue])) {
407  return self::$discriminatorClasses[$discriminatorValue];
408  }
409  }
410  if (is_array($value) && isset($value[$fieldName])) {
412  $discriminatorValue = $value[$fieldName];
413  if (isset(self::$discriminatorClasses[$discriminatorValue])) {
414  return self::$discriminatorClasses[$discriminatorValue];
415  }
416  }
417 
419  $type = ChangeModel::class;
420  return $type;
421  }
422 }
__construct(?string $change=null, ?string $type=null)