File tree 3 files changed +6
-3
lines changed
java/com/magento/idea/magento2plugin/magento/packages
resources/fileTemplates/internal
3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0).
9
9
### Added
10
10
11
11
- Clear notifications for the process status of URN generation [ #2486 ] ( https://github.com/magento/magento2-phpstorm-plugin/pull/2486 )
12
+ - Added array as a type in Data Model properties [ #2488 ] ( https://github.com/magento/magento2-phpstorm-plugin/pull/2488 )
12
13
13
14
### Fixed
14
15
Original file line number Diff line number Diff line change @@ -14,7 +14,8 @@ public enum PropertiesTypes {
14
14
INT ("int" ),
15
15
FLOAT ("float" ),
16
16
STRING ("string" ),
17
- BOOL ("bool" );
17
+ BOOL ("bool" ),
18
+ ARRAY ("array" );
18
19
19
20
private final String propertyType ;
20
21
@@ -66,7 +67,8 @@ public static String[] getPropertyTypes() {
66
67
valueOf (INT .toString ()).getPropertyType (),
67
68
valueOf (FLOAT .toString ()).getPropertyType (),
68
69
valueOf (STRING .toString ()).getPropertyType (),
69
- valueOf (BOOL .toString ()).getPropertyType ()
70
+ valueOf (BOOL .toString ()).getPropertyType (),
71
+ valueOf (ARRAY .toString ()).getPropertyType ()
70
72
};
71
73
}
72
74
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ class ${NAME} #if (${EXTENDS})extends ${EXTENDS} #end #if (${IMPLEMENTS} && $has
48
48
*/
49
49
public function get$propertyUpperCamel(): ?$propertyType
50
50
{
51
- #if($propertyType == 'string')
51
+ #if($propertyType == 'string' || $propertyType == 'array' )
52
52
return $this->getData(self::$propertyUpperSnake);
53
53
#{else}
54
54
return $this->getData(self::$propertyUpperSnake) === null ? null
You can’t perform that action at this time.
0 commit comments