Webmozart\Console\Api\Config\CommandConfig::getSubCommandConfigs PHP Method

getSubCommandConfigs() public method

Returns the configurations of all sub-commands.
See also: beginSubCommand()
public getSubCommandConfigs ( ) : SubCommandConfig[]
return SubCommandConfig[] The sub-command configurations.
    public function getSubCommandConfigs()
    {
        return $this->subCommandConfigs;
    }

Usage Example

示例#1
0
 public function testBeginOptionCommand()
 {
     $this->config->beginOptionCommand('command1', 'a')->end()->beginOptionCommand('command2', 'b')->end();
     $this->assertEquals(array(new OptionCommandConfig('command1', 'a', $this->config, $this->applicationConfig), new OptionCommandConfig('command2', 'b', $this->config, $this->applicationConfig)), $this->config->getSubCommandConfigs());
 }
All Usage Examples Of Webmozart\Console\Api\Config\CommandConfig::getSubCommandConfigs