File tree Expand file tree Collapse file tree 9 files changed +32
-1
lines changed
src/com/magento/idea/magento2plugin/magento/files Expand file tree Collapse file tree 9 files changed +32
-1
lines changed Original file line number Diff line number Diff line change 2
2
* Copyright © Magento, Inc. All rights reserved.
3
3
* See COPYING.txt for license details.
4
4
*/
5
+
5
6
package com .magento .idea .magento2plugin .magento .files ;
6
7
7
8
import com .intellij .lang .Language ;
@@ -16,6 +17,9 @@ public class BlockPhp implements ModuleFileInterface {
16
17
private static BlockPhp INSTANCE = null ;
17
18
private String fileName ;
18
19
20
+ /**
21
+ * Getter for singleton instance of class.
22
+ */
19
23
public static BlockPhp getInstance (String className ) {
20
24
if (null == INSTANCE ) {
21
25
INSTANCE = new BlockPhp ();
Original file line number Diff line number Diff line change 2
2
* Copyright © Magento, Inc. All rights reserved.
3
3
* See COPYING.txt for license details.
4
4
*/
5
+
5
6
package com .magento .idea .magento2plugin .magento .files ;
6
7
7
8
import com .intellij .json .JsonLanguage ;
@@ -14,6 +15,9 @@ public class ComposerJson implements ModuleFileInterface {
14
15
public static String NO_DEPENDENCY_LABEL = "None" ;
15
16
private static ComposerJson INSTANCE = null ;
16
17
18
+ /**
19
+ * Getter for singleton instance of class.
20
+ */
17
21
public static ComposerJson getInstance () {
18
22
if (null == INSTANCE ) {
19
23
INSTANCE = new ComposerJson ();
Original file line number Diff line number Diff line change 2
2
* Copyright © Magento, Inc. All rights reserved.
3
3
* See COPYING.txt for license details.
4
4
*/
5
+
5
6
package com .magento .idea .magento2plugin .magento .files ;
6
7
7
8
import com .intellij .lang .Language ;
Original file line number Diff line number Diff line change 2
2
* Copyright © Magento, Inc. All rights reserved.
3
3
* See COPYING.txt for license details.
4
4
*/
5
+
5
6
package com .magento .idea .magento2plugin .magento .files ;
6
7
7
8
import com .intellij .lang .Language ;
Original file line number Diff line number Diff line change 2
2
* Copyright © Magento, Inc. All rights reserved.
3
3
* See COPYING.txt for license details.
4
4
*/
5
+
5
6
package com .magento .idea .magento2plugin .magento .files ;
6
7
7
8
import com .intellij .lang .Language ;
@@ -21,6 +22,9 @@ public class ModuleEventsXml implements ModuleFileInterface {
21
22
22
23
private static ModuleEventsXml INSTANCE = null ;
23
24
25
+ /**
26
+ * Getter for singleton instance of class.
27
+ */
24
28
public static ModuleEventsXml getInstance () {
25
29
if (null == INSTANCE ) {
26
30
INSTANCE = new ModuleEventsXml ();
Original file line number Diff line number Diff line change 2
2
* Copyright © Magento, Inc. All rights reserved.
3
3
* See COPYING.txt for license details.
4
4
*/
5
+
5
6
package com .magento .idea .magento2plugin .magento .files ;
6
7
7
8
import com .intellij .lang .Language ;
@@ -13,6 +14,9 @@ public class ModuleXml implements ModuleFileInterface {
13
14
public static String TEMPLATE = "Magento Module XML" ;
14
15
private static ModuleXml INSTANCE = null ;
15
16
17
+ /**
18
+ * Getter for singleton instance of class.
19
+ */
16
20
public static ModuleXml getInstance () {
17
21
if (null == INSTANCE ) {
18
22
INSTANCE = new ModuleXml ();
Original file line number Diff line number Diff line change 2
2
* Copyright © Magento, Inc. All rights reserved.
3
3
* See COPYING.txt for license details.
4
4
*/
5
+
5
6
package com .magento .idea .magento2plugin .magento .files ;
6
7
7
8
import com .intellij .lang .Language ;
@@ -13,6 +14,9 @@ public class PhpPreference implements ModuleFileInterface {
13
14
private static PhpPreference INSTANCE = null ;
14
15
private String fileName ;
15
16
17
+ /**
18
+ * Getter for singleton instance of class.
19
+ */
16
20
public static PhpPreference getInstance (String className ) {
17
21
if (null == INSTANCE ) {
18
22
INSTANCE = new PhpPreference ();
Original file line number Diff line number Diff line change 2
2
* Copyright © Magento, Inc. All rights reserved.
3
3
* See COPYING.txt for license details.
4
4
*/
5
+
5
6
package com .magento .idea .magento2plugin .magento .files ;
6
7
7
8
import com .intellij .lang .Language ;
@@ -13,6 +14,9 @@ public class RegistrationPhp implements ModuleFileInterface {
13
14
public static String REGISTER_METHOD_NAME = "register" ;
14
15
private static RegistrationPhp INSTANCE = null ;
15
16
17
+ /**
18
+ * Getter for singleton instance of class.
19
+ */
16
20
public static RegistrationPhp getInstance () {
17
21
if (null == INSTANCE ) {
18
22
INSTANCE = new RegistrationPhp ();
Original file line number Diff line number Diff line change 2
2
* Copyright © Magento, Inc. All rights reserved.
3
3
* See COPYING.txt for license details.
4
4
*/
5
+
5
6
package com .magento .idea .magento2plugin .magento .files ;
6
7
7
8
import com .intellij .lang .Language ;
10
11
public class ViewModelPhp implements ModuleFileInterface {
11
12
public static String TEMPLATE = "Magento Regular Class" ;
12
13
public static String DEFAULT_DIR = "ViewModel" ;
13
- public static String INTERFACE_FQN = "Magento\\ Framework\\ View\\ Element\\ Block\\ ArgumentInterface" ;
14
+ public static String INTERFACE_FQN
15
+ = "Magento\\ Framework\\ View\\ Element\\ Block\\ ArgumentInterface" ;
14
16
public static String INTERFACE_NAME = "ArgumentInterface" ;
15
17
16
18
private static ViewModelPhp INSTANCE = null ;
17
19
private String fileName ;
18
20
21
+ /**
22
+ * Getter for singleton instance of class.
23
+ */
19
24
public static ViewModelPhp getInstance (String className ) {
20
25
if (null == INSTANCE ) {
21
26
INSTANCE = new ViewModelPhp ();
You can’t perform that action at this time.
0 commit comments