Hal\Application\Console\DesignPatternApplication::getCommandName PHP Method

getCommandName() protected method

Gets the name of the command based on input.
protected getCommandName ( Symfony\Component\Console\Input\InputInterface $input ) : string
$input Symfony\Component\Console\Input\InputInterface The input interface
return string The command name
    protected function getCommandName(InputInterface $input)
    {
        $inputDefinition = $this->getDefinition();
        $inputDefinition->setArguments();
        $this->setDefinition($inputDefinition);
        return 'patterns';
    }
DesignPatternApplication