public function addSubCommandConfig(SubCommandConfig $config)
    {
        // The name is dynamic, so don't store by name
        $this->subCommandConfigs[] = $config;

        $config->setParentConfig($this);

        return $this;
    }
public function addSubCommandConfig(SubCommandConfig $config)
    {
        // The name is dynamic, so don't store by name
        $this->subCommandConfigs[] = $config;

        $config->setParentConfig($this);

        return $this;
    }
public function addSubCommandConfig ( SubCommandConfig $ config ) { // The name is dynamic, so don't store by name $ this -> subCommandConfigs [ ] = $ config ; $ config -> setParentConfig ( $ this ) ; return $ this ; }
Adds configuration for a sub-command.

@param SubCommandConfig $config The sub-command configuration.

@return static The current instance.

@see beginSubCommand()
Adds configuration for a sub - command .