public function getCommandConfig($name)
    {
        foreach ($this->commandConfigs as $commandConfig) {
            if ($name === $commandConfig->getName()) {
                return $commandConfig;
            }
        }

        throw NoSuchCommandException::forCommandName($name);
    }
public function getCommandConfig($name)
    {
        foreach ($this->commandConfigs as $commandConfig) {
            if ($name === $commandConfig->getName()) {
                return $commandConfig;
            }
        }

        throw NoSuchCommandException::forCommandName($name);
    }
public function getCommandConfig ( $ name ) { foreach ( $ this -> commandConfigs as $ commandConfig ) { if ( $ name === $ commandConfig -> getName ( ) ) { return $ commandConfig ; } } throw NoSuchCommandException :: forCommandName ( $ name ) ; }
Returns the command configuration for a given name.

@param string $name The name of the command.

@return CommandConfig The command configuration.

@throws NoSuchCommandException If the command configuration is not found.

@see beginCommand()
Returns the command configuration for a given name .