|
| 1 | +/* |
| 2 | + * Copyright © Magento, Inc. All rights reserved. |
| 3 | + * See COPYING.txt for license details. |
| 4 | + */ |
| 5 | + |
| 6 | +package com.magento.idea.magento2plugin.actions.generation; |
| 7 | + |
| 8 | +import com.intellij.psi.PsiDirectory; |
| 9 | +import org.jetbrains.annotations.NotNull; |
| 10 | + |
| 11 | +public class ModuleObserverData { |
| 12 | + |
| 13 | + private final String packageName; |
| 14 | + private final String moduleName; |
| 15 | + private final String classFqn; |
| 16 | + private final String evenName; |
| 17 | + private final PsiDirectory baseDir; |
| 18 | + private final String className; |
| 19 | + |
| 20 | + /** |
| 21 | + * Constructor. |
| 22 | + * |
| 23 | + * @param packageName String |
| 24 | + * @param moduleName String |
| 25 | + * @param classFqn String |
| 26 | + * @param evenName String |
| 27 | + * @param baseDir PsiDirectory |
| 28 | + * @param className PsiDirectory |
| 29 | + */ |
| 30 | + public ModuleObserverData( |
| 31 | + final @NotNull String packageName, |
| 32 | + final @NotNull String moduleName, |
| 33 | + final @NotNull String classFqn, |
| 34 | + final @NotNull String evenName, |
| 35 | + final @NotNull PsiDirectory baseDir, |
| 36 | + final @NotNull String className |
| 37 | + ) { |
| 38 | + this.packageName = packageName; |
| 39 | + this.moduleName = moduleName; |
| 40 | + this.classFqn = classFqn; |
| 41 | + this.evenName = evenName; |
| 42 | + this.baseDir = baseDir; |
| 43 | + this.className = className; |
| 44 | + } |
| 45 | + |
| 46 | + public @NotNull String getPackageName() { |
| 47 | + return packageName; |
| 48 | + } |
| 49 | + |
| 50 | + public @NotNull String getModuleName() { |
| 51 | + return moduleName; |
| 52 | + } |
| 53 | + |
| 54 | + public @NotNull String getClassFqn() { |
| 55 | + return classFqn; |
| 56 | + } |
| 57 | + |
| 58 | + public @NotNull PsiDirectory getBaseDir() { |
| 59 | + return baseDir; |
| 60 | + } |
| 61 | + |
| 62 | + public @NotNull String getClassName() { |
| 63 | + return className; |
| 64 | + } |
| 65 | + |
| 66 | + public @NotNull String getEventName() { |
| 67 | + return evenName; |
| 68 | + } |
| 69 | +} |
0 commit comments