hasSubCommandConfigs() публичный Метод

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