|
| 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.data; |
| 7 | + |
| 8 | +@SuppressWarnings({"PMD.CommentSize", "PMD.DataClass"}) |
| 9 | +public class CLICommandClassData { |
| 10 | + private final String className; |
| 11 | + private final String parentDirectory; |
| 12 | + private final String commandName; |
| 13 | + private final String description; |
| 14 | + private final String namespace; |
| 15 | + private final String moduleName; |
| 16 | + |
| 17 | + /** |
| 18 | + * CLI Command PHP class data class. |
| 19 | + * |
| 20 | + * @param cliClassName PHP class name |
| 21 | + * @param parentDirectory Prent directory of a PHP class |
| 22 | + * @param cliCommandName CLI Command name |
| 23 | + * @param description CLI Command description |
| 24 | + * @param namespace namespace of a PHP class |
| 25 | + * @param moduleName CLI Command module name |
| 26 | + */ |
| 27 | + public CLICommandClassData( |
| 28 | + final String cliClassName, |
| 29 | + final String parentDirectory, |
| 30 | + final String cliCommandName, |
| 31 | + final String description, |
| 32 | + final String namespace, |
| 33 | + final String moduleName |
| 34 | + ) { |
| 35 | + this.className = cliClassName; |
| 36 | + this.parentDirectory = parentDirectory; |
| 37 | + this.commandName = cliCommandName; |
| 38 | + this.description = description; |
| 39 | + this.namespace = namespace; |
| 40 | + this.moduleName = moduleName; |
| 41 | + } |
| 42 | + |
| 43 | + public String getClassName() { |
| 44 | + return className; |
| 45 | + } |
| 46 | + |
| 47 | + public String getParentDirectory() { |
| 48 | + return parentDirectory; |
| 49 | + } |
| 50 | + |
| 51 | + public String getCommandName() { |
| 52 | + return commandName; |
| 53 | + } |
| 54 | + |
| 55 | + public String getCommandDescription() { |
| 56 | + return description; |
| 57 | + } |
| 58 | + |
| 59 | + public String getNamespace() { |
| 60 | + return namespace; |
| 61 | + } |
| 62 | + |
| 63 | + public String getModuleName() { |
| 64 | + return moduleName; |
| 65 | + } |
| 66 | +} |
0 commit comments