Webmozart\Console\Adapter\ArgsFormatInputDefinition::adaptCommandName PHP Méthode

adaptCommandName() private méthode

Creates an input argument for the given command name.
private adaptCommandName ( CommandName $commandName, string $argName ) : Symfony\Component\Console\Input\InputArgument
$commandName Webmozart\Console\Api\Args\Format\CommandName The command name.
$argName string The name of the added argument.
Résultat Symfony\Component\Console\Input\InputArgument The created input argument.
    private function adaptCommandName(CommandName $commandName, $argName)
    {
        return new InputArgument($argName, InputArgument::REQUIRED);
    }