@@ -111,7 +111,7 @@ class Option extends AbstractExtensibleModel implements ProductCustomOptionInter
111
111
/**
112
112
* @var string[]
113
113
*/
114
- private $ optionGroupsToTypes ;
114
+ private $ optionTypesToGroups ;
115
115
116
116
/**
117
117
* @var MetadataPool
@@ -137,7 +137,7 @@ class Option extends AbstractExtensibleModel implements ProductCustomOptionInter
137
137
* @param array $data
138
138
* @param ProductCustomOptionValuesInterfaceFactory|null $customOptionValuesFactory
139
139
* @param array $optionGroups
140
- * @param array $optionGroupsToTypes
140
+ * @param array $optionTypesToGroups
141
141
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
142
142
*/
143
143
public function __construct (
@@ -154,7 +154,7 @@ public function __construct(
154
154
array $ data = [],
155
155
ProductCustomOptionValuesInterfaceFactory $ customOptionValuesFactory = null ,
156
156
array $ optionGroups = [],
157
- array $ optionGroupsToTypes = []
157
+ array $ optionTypesToGroups = []
158
158
) {
159
159
$ this ->productOptionValue = $ productOptionValue ;
160
160
$ this ->optionTypeFactory = $ optionFactory ;
@@ -168,7 +168,7 @@ public function __construct(
168
168
self ::OPTION_GROUP_SELECT => Select::class,
169
169
self ::OPTION_GROUP_TEXT => Text::class,
170
170
];
171
- $ this ->optionGroupsToTypes = $ optionGroupsToTypes ?: [
171
+ $ this ->optionTypesToGroups = $ optionTypesToGroups ?: [
172
172
self ::OPTION_TYPE_FIELD => self ::OPTION_GROUP_TEXT ,
173
173
self ::OPTION_TYPE_AREA => self ::OPTION_GROUP_TEXT ,
174
174
self ::OPTION_TYPE_FILE => self ::OPTION_GROUP_FILE ,
@@ -352,7 +352,7 @@ public function getGroupByType($type = null): string
352
352
$ type = $ this ->getType ();
353
353
}
354
354
355
- return $ this ->optionGroupsToTypes [$ type ] ?? '' ;
355
+ return $ this ->optionTypesToGroups [$ type ] ?? '' ;
356
356
}
357
357
358
358
/**
0 commit comments