Returns whether the command has any registered sub-command configurations.
public hasSubCommandConfigs ( ) : boolean | ||
Результат | boolean | Returns `true` if sub-command configurations were added to the command and `false` otherwise. |
public function testHasSubCommandConfigs() { $this->assertFalse($this->config->hasSubCommandConfigs()); $this->config->addSubCommandConfig($config = new SubCommandConfig()); $this->assertTrue($this->config->hasSubCommandConfigs()); }