@@ -114,32 +114,32 @@ public function interact(InputInterface $input, ConsoleStyle $io, Command $comma
114
114
115
115
$ argument = $ command ->getDefinition ()->getArgument ('name ' );
116
116
$ question = $ this ->createEntityClassQuestion ($ argument ->getDescription ());
117
- $ value = $ io ->askQuestion ($ question );
117
+ $ entityClassName = $ io ->askQuestion ($ question );
118
118
119
- $ input ->setArgument ('name ' , $ value );
119
+ $ input ->setArgument ('name ' , $ entityClassName );
120
120
121
121
if (
122
122
!$ input ->getOption ('api-resource ' ) &&
123
123
class_exists (ApiResource::class) &&
124
- !class_exists ($ this ->generator ->createClassNameDetails ($ value , 'Entity \\' )->getFullName ())
124
+ !class_exists ($ this ->generator ->createClassNameDetails ($ entityClassName , 'Entity \\' )->getFullName ())
125
125
) {
126
126
$ description = $ command ->getDefinition ()->getOption ('api-resource ' )->getDescription ();
127
127
$ question = new ConfirmationQuestion ($ description , false );
128
- $ value = $ io ->askQuestion ($ question );
128
+ $ isApiResource = $ io ->askQuestion ($ question );
129
129
130
- $ input ->setOption ('api-resource ' , $ value );
130
+ $ input ->setOption ('api-resource ' , $ isApiResource );
131
131
}
132
132
133
133
if (
134
134
!$ input ->getOption ('broadcast ' ) &&
135
135
class_exists (Broadcast::class) &&
136
- !class_exists ($ this ->generator ->createClassNameDetails ($ value , 'Entity \\' )->getFullName ())
136
+ !class_exists ($ this ->generator ->createClassNameDetails ($ entityClassName , 'Entity \\' )->getFullName ())
137
137
) {
138
138
$ description = $ command ->getDefinition ()->getOption ('broadcast ' )->getDescription ();
139
139
$ question = new ConfirmationQuestion ($ description , false );
140
- $ value = $ io ->askQuestion ($ question );
140
+ $ isBroadcast = $ io ->askQuestion ($ question );
141
141
142
- $ input ->setOption ('broadcast ' , $ value );
142
+ $ input ->setOption ('broadcast ' , $ isBroadcast );
143
143
}
144
144
}
145
145
0 commit comments