File tree Expand file tree Collapse file tree 1 file changed +4
-13
lines changed Expand file tree Collapse file tree 1 file changed +4
-13
lines changed Original file line number Diff line number Diff line change 88use CodeIgniter \CLI \GeneratorTrait ;
99
1010/**
11- * Generates a skeleton command file.
11+ * Generates a custom user model file.
1212 */
1313class UserModelGenerator extends BaseCommand
1414{
1515 use GeneratorTrait;
1616
1717 /**
18- * The Command's Group
19- *
2018 * @var string
2119 */
2220 protected $ group = 'Shield ' ;
2321
2422 /**
25- * The Command's Name
26- *
2723 * @var string
2824 */
2925 protected $ name = 'shield:model ' ;
3026
3127 /**
32- * The Command's Description
33- *
3428 * @var string
3529 */
36- protected $ description = 'Generates a new UserModel file. ' ;
30+ protected $ description = 'Generate a new UserModel file. ' ;
3731
3832 /**
39- * The Command's Usage
40- *
4133 * @var string
4234 */
4335 protected $ usage = 'shield:model <name> [options] ' ;
@@ -52,8 +44,6 @@ class UserModelGenerator extends BaseCommand
5244 ];
5345
5446 /**
55- * The Command's Options
56- *
5747 * @var array<string, string>
5848 */
5949 protected $ options = [
@@ -63,7 +53,7 @@ class UserModelGenerator extends BaseCommand
6353 ];
6454
6555 /**
66- * Actually execute a command.
56+ * Actually execute the command.
6757 */
6858 public function run (array $ params ): void
6959 {
@@ -72,6 +62,7 @@ public function run(array $params): void
7262 $ this ->template = 'usermodel.tpl.php ' ;
7363
7464 $ this ->classNameLang = 'CLI.generator.className.model ' ;
65+
7566 $ this ->execute ($ params );
7667 }
7768}
You can’t perform that action at this time.
0 commit comments