3 declare(strict_types=1);
33 private static $discriminatorClasses = [
34 'changeMyQuoteState' => MyQuoteChangeMyQuoteStateActionModel::class,
52 if (is_null($this->action)) {
54 $data = $this->
raw(self::FIELD_ACTION);
58 $this->action = (string) $data;
75 if (is_object($value) && isset($value->$fieldName)) {
77 $discriminatorValue = $value->$fieldName;
78 if (isset(self::$discriminatorClasses[$discriminatorValue])) {
79 return self::$discriminatorClasses[$discriminatorValue];
82 if (is_array($value) && isset($value[$fieldName])) {
84 $discriminatorValue = $value[$fieldName];
85 if (isset(self::$discriminatorClasses[$discriminatorValue])) {
86 return self::$discriminatorClasses[$discriminatorValue];
91 $type = MyQuoteUpdateActionModel::class;