protected function basename(string
$filename): string
{ return basename($filename);
} /**
* Parses the class name and checks if it is already qualified.
*/
protected function qualifyClassName(): string
{ // Gets the class name from input.
$class =
$this->params
[0
] ?? CLI::
getSegment(2
);
if ($class === null &&
$this->hasClassName
) { // @codeCoverageIgnoreStart
$nameLang =
$this->classNameLang ?: 'CLI.generator.className.default';
$class = CLI::
prompt(lang($nameLang), null, 'required'
);
CLI::
newLine();
// @codeCoverageIgnoreEnd
} helper('inflector'
);